From ab24ad4a6c35549539d43b51efad21f6f7cf779f Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 30 Apr 2012 13:08:55 +0200 Subject: [PATCH] if we failed to get the appletdescription, then try to get the pluginName from the existing config --- applet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index aeb5cc61d..0e1a3c85b 100644 --- a/applet.cpp +++ b/applet.cpp @@ -268,7 +268,7 @@ void Applet::save(KConfigGroup &g) const group = *d->mainConfigGroup(); } - //kDebug() << "saving to" << group.name(); + //kDebug() << "saving" << pluginName() << "to" << group.name(); // we call the dptr member directly for locked since isImmutable() // also checks kiosk and parent containers group.writeEntry("immutability", (int)d->immutability); @@ -843,7 +843,7 @@ QString Applet::icon() const QString Applet::pluginName() const { if (!d->appletDescription.isValid()) { - return QString(); + return d->mainConfigGroup()->readEntry("plugin", QString()); } return d->appletDescription.pluginName();