when a new containment is set the running applets list needs to be

rebuilt.
this makes such list to actually work again

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812600
This commit is contained in:
Marco Martin 2008-05-25 20:03:28 +00:00
parent 05d6ec6401
commit c420730dd5

View File

@ -221,7 +221,10 @@ QString AppletBrowserWidget::application()
void AppletBrowserWidget::setContainment(Plasma::Containment *containment) void AppletBrowserWidget::setContainment(Plasma::Containment *containment)
{ {
d->containment = containment; if (d->containment != containment) {
d->containment = containment;
d->initRunningApplets();
}
} }
Containment *AppletBrowserWidget::containment() const Containment *AppletBrowserWidget::containment() const