Check if applet's plugininfo is valid
This commit is contained in:
parent
07f7fa328c
commit
302c10cd9e
@ -320,7 +320,11 @@ void WidgetExplorerPrivate::initRunningApplets()
|
||||
// QObject::connect(containment, &Containment::appletRemoved, q, &WidgetExplorerPrivate::appletRemoved);
|
||||
|
||||
foreach (Applet *applet, containment->applets()) {
|
||||
runningApplets[applet->pluginInfo().pluginName()]++;
|
||||
if (applet->pluginInfo().isValid()) {
|
||||
runningApplets[applet->pluginInfo().pluginName()]++;
|
||||
} else {
|
||||
qDebug() << "Invalid plugininfo. :(";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user