diff --git a/appletbrowser.cpp b/appletbrowser.cpp index 34b4128d2..c068f3165 100644 --- a/appletbrowser.cpp +++ b/appletbrowser.cpp @@ -187,9 +187,13 @@ void AppletBrowserWidget::Private::initRunningApplets() appletNames.clear(); runningApplets.clear(); QList containments = c->containments(); - foreach (Containment * containment,containments) { + foreach (Containment *containment, containments) { connect(containment, SIGNAL(appletAdded(Plasma::Applet*,QPointF)), q, SLOT(appletAdded(Plasma::Applet*))); connect(containment, SIGNAL(appletRemoved(Plasma::Applet*)), q, SLOT(appletRemoved(Plasma::Applet*))); + + foreach (Applet *applet, containment->applets()) { + runningApplets[applet->name()]++; + } } //kDebug() << runningApplets;