be more careful about the things we watch

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739951
This commit is contained in:
Aaron J. Seigo 2007-11-22 07:37:57 +00:00
parent d6001be92a
commit fc6b8e4a95

View File

@ -426,8 +426,11 @@ void Containment::appletAnimationComplete(QGraphicsItem *item, Plasma::Phase::An
parent = parent->parentItem();
}
} else if (anim == Phase::Appear) {
if (containmentType() == DesktopContainment) {
item->installSceneEventFilter(this);
if (containmentType() == DesktopContainment &&
item->parentItem() == this &&
qgraphicsitem_cast<Applet*>(applet)) {
item->installSceneEventFilter(this);
}
}
}
}