diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -360,7 +360,9 @@ if (data.length() < 1) { // Property was removed, thus also remove the effect for window - w->setData(WindowClosedGrabRole, QVariant()); + if (w->data(WindowClosedGrabRole).value() == this) { + w->setData(WindowClosedGrabRole, QVariant()); + } delete mAppearingWindows.take(w); delete mDisappearingWindows.take(w); mWindowsData.remove(w);