remove eventfilters if type is no more Desktop

sceneeventfilters are used just for applet handles, that shouldn't exist in custom contaiments or panel containments
This commit is contained in:
Marco Martin 2011-02-25 22:27:01 +01:00
parent c56287f927
commit e385737203

View File

@ -513,6 +513,12 @@ void Containment::setContainmentType(Containment::Type type)
return;
}
if (type != DesktopContainment) {
foreach (Plasma::Applet *applet, applets()) {
applet->removeSceneEventFilter(this);
}
}
delete d->toolBox.data();
d->type = type;
d->checkContainmentFurniture();