set immutability even if the applet fails to load

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692621
This commit is contained in:
Aaron J. Seigo 2007-07-26 02:07:18 +00:00
parent 52514c1c35
commit 455f06eb8b

View File

@ -87,6 +87,9 @@ public:
void init(Applet* applet)
{
applet->setImmutable(applet->globalConfig().isImmutable() ||
applet->config().isImmutable());
if (!appletDescription.isValid()) {
applet->setFailedToLaunch(true);
return;
@ -126,9 +129,6 @@ public:
}
}
}
applet->setImmutable(applet->globalConfig().isImmutable() ||
applet->config().isImmutable());
}
void paintBackground(QPainter* p, Applet* q)