From 42de815ffb718340d14886339d09566dcf54d81f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 10 Jun 2009 02:05:31 +0000 Subject: [PATCH] catch the case where the widget goes from a QWidget to a QGraphicsWidget svn path=/trunk/KDE/kdelibs/; revision=979515 --- popupapplet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/popupapplet.cpp b/popupapplet.cpp index e190e863f..b2e2a4cb5 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -221,6 +221,12 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) QSize prefSize; if (gWidget) { + if (proxy) { + proxy->setWidget(0); + delete proxy; + proxy = 0; + } + Corona *corona = qobject_cast(gWidget->scene()); if (corona) {