diff --git a/widgetexplorer/widgetexplorer.cpp b/widgetexplorer/widgetexplorer.cpp index 93ca8b74d..e576ae37b 100644 --- a/widgetexplorer/widgetexplorer.cpp +++ b/widgetexplorer/widgetexplorer.cpp @@ -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. :("; + } } }