fix our "not really remove applet" when remove applet in the panel/containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805373
This commit is contained in:
parent
48f9257fb1
commit
71f1d6f5cb
@ -1026,6 +1026,10 @@ void Containment::Private::appletAnimationComplete(QGraphicsItem *item, Plasma::
|
|||||||
Applet *applet = qgraphicsitem_cast<Applet*>(item);
|
Applet *applet = qgraphicsitem_cast<Applet*>(item);
|
||||||
|
|
||||||
if (applet) {
|
if (applet) {
|
||||||
|
QGraphicsLinearLayout * lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());
|
||||||
|
if (lay) {
|
||||||
|
lay->removeItem(applet);
|
||||||
|
}
|
||||||
applet->destroy();
|
applet->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user