Check if applet's plugininfo is valid

This commit is contained in:
Sebastian Kügler 2013-07-29 00:16:21 +02:00
parent 07f7fa328c
commit 302c10cd9e

View File

@ -320,7 +320,11 @@ void WidgetExplorerPrivate::initRunningApplets()
// QObject::connect(containment, &Containment::appletRemoved, q, &WidgetExplorerPrivate::appletRemoved);
foreach (Applet *applet, containment->applets()) {
if (applet->pluginInfo().isValid()) {
runningApplets[applet->pluginInfo().pluginName()]++;
} else {
qDebug() << "Invalid plugininfo. :(";
}
}
}