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:
parent
c56287f927
commit
e385737203
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user