if we failed to get the appletdescription, then try to get the pluginName from the existing config

This commit is contained in:
Aaron Seigo 2012-04-30 13:08:55 +02:00
parent 4f5974104a
commit ab24ad4a6c

View File

@ -268,7 +268,7 @@ void Applet::save(KConfigGroup &g) const
group = *d->mainConfigGroup(); group = *d->mainConfigGroup();
} }
//kDebug() << "saving to" << group.name(); //kDebug() << "saving" << pluginName() << "to" << group.name();
// we call the dptr member directly for locked since isImmutable() // we call the dptr member directly for locked since isImmutable()
// also checks kiosk and parent containers // also checks kiosk and parent containers
group.writeEntry("immutability", (int)d->immutability); group.writeEntry("immutability", (int)d->immutability);
@ -843,7 +843,7 @@ QString Applet::icon() const
QString Applet::pluginName() const QString Applet::pluginName() const
{ {
if (!d->appletDescription.isValid()) { if (!d->appletDescription.isValid()) {
return QString(); return d->mainConfigGroup()->readEntry("plugin", QString());
} }
return d->appletDescription.pluginName(); return d->appletDescription.pluginName();