don't use Package for isPublished

This commit is contained in:
Aaron Seigo 2011-07-13 20:07:19 +02:00
parent 2f1c50c419
commit db0e72bf77

View File

@ -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)