diff --git a/containment.cpp b/containment.cpp index 752478548..fc1199d00 100644 --- a/containment.cpp +++ b/containment.cpp @@ -428,9 +428,8 @@ void Containment::appletAnimationComplete(QGraphicsItem *item, Plasma::Phase::An } else if (anim == Phase::Appear) { if (containmentType() == DesktopContainment && item->parentItem() == this && - qgraphicsitem_cast(applet)) { + qgraphicsitem_cast(item)) { item->installSceneEventFilter(this); - } } } }