From b8d5915b229c7e61b371672e1a016bb1d65e9093 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 27 Nov 2007 06:35:26 +0000 Subject: [PATCH] don't bother creating applets with no plugin= svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742108 --- corona.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/corona.cpp b/corona.cpp index ac8c0f47e..98786d9ef 100644 --- a/corona.cpp +++ b/corona.cpp @@ -171,8 +171,13 @@ void Corona::loadApplets(const QString& configName) int appId = appletGroup.toUInt(); KConfigGroup appletConfig(&applets, appletGroup); kDebug() << "the name is" << appletConfig.name(); - Applet *applet = c->addApplet(appletConfig.readEntry("plugin", QString()), QVariantList(), - appId, appletConfig.readEntry("geometry", QRectF()), true); + QString plugin = appletConfig.readEntry("plugin", QString()); + + if (plugin.isEmpty()) { + continue; + } + + Applet *applet = c->addApplet(plugin, QVariantList(), appId, appletConfig.readEntry("geometry", QRectF()), true); Q_UNUSED(applet) // FIXME: the transform does not stick; it gets set then almost immediately reset. // find out why and then reenable this