Merge remote-tracking branch 'origin/master' into libplasma2
This commit is contained in:
commit
9f3a67df08
@ -510,12 +510,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);
|
||||||
|
Loading…
Reference in New Issue
Block a user