diff --git a/applet.cpp b/applet.cpp index 8823f8968..7c928efda 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1673,15 +1673,7 @@ void Applet::unpublish() bool Applet::isPublished() const { - if (d->package) { - return d->package->d->isPublished(); - } else { - if (d->service) { - return d->service->d->isPublished(); - } else { - return false; - } - } + return d->service && d->service->d->isPublished(); } void Applet::setHasConfigurationInterface(bool hasInterface)