catch the case where the widget goes from a QWidget to a QGraphicsWidget

svn path=/trunk/KDE/kdelibs/; revision=979515
This commit is contained in:
Aaron J. Seigo 2009-06-10 02:05:31 +00:00
parent c2717ed3f2
commit 42de815ffb

View File

@ -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<Corona *>(gWidget->scene());
if (corona) {