now that containment no longer installs event filters on the applets, no need to remove them either

This commit is contained in:
Aaron Seigo 2011-05-28 00:33:55 +02:00
parent dd122bc011
commit c2cdb2bf8f

View File

@ -512,12 +512,6 @@ void Containment::setContainmentType(Containment::Type type)
return; return;
} }
if (type != DesktopContainment) {
foreach (Plasma::Applet *applet, applets()) {
applet->removeSceneEventFilter(this);
}
}
delete d->toolBox.data(); delete d->toolBox.data();
d->type = type; d->type = type;
d->checkContainmentFurniture(); d->checkContainmentFurniture();
@ -884,7 +878,6 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
} }
disconnect(applet, 0, currentContainment, 0); disconnect(applet, 0, currentContainment, 0);
applet->removeSceneEventFilter(currentContainment);
KConfigGroup oldConfig = applet->config(); KConfigGroup oldConfig = applet->config();
currentContainment->d->applets.removeAll(applet); currentContainment->d->applets.removeAll(applet);
applet->setParentItem(this); applet->setParentItem(this);