initialize the running applets

BUG:164397

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823260
This commit is contained in:
Aaron J. Seigo 2008-06-22 22:06:43 +00:00
parent eb2b4126ae
commit 587e0f8418

View File

@ -187,9 +187,13 @@ void AppletBrowserWidget::Private::initRunningApplets()
appletNames.clear();
runningApplets.clear();
QList<Containment*> 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;