From 2ab6421307955aed4e8dad1d5007603b72630296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Mon, 29 Jul 2013 00:16:21 +0200 Subject: [PATCH] Check if applet's plugininfo is valid --- widgetexplorer/widgetexplorer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. :("; + } } }