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:
Alexis Ménard 2008-05-08 11:13:48 +00:00
parent 48f9257fb1
commit 71f1d6f5cb

View File

@ -1026,6 +1026,10 @@ void Containment::Private::appletAnimationComplete(QGraphicsItem *item, Plasma::
Applet *applet = qgraphicsitem_cast<Applet*>(item);
if (applet) {
QGraphicsLinearLayout * lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());
if (lay) {
lay->removeItem(applet);
}
applet->destroy();
}