remove the offscreenwidget before putting it on screen again. this fixes

the popupapplet crash  the second time it's dragged from desktop to
panel

svn path=/trunk/KDE/kdelibs/; revision=901241
This commit is contained in:
Marco Martin 2008-12-24 19:13:05 +00:00
parent 32e0e2ed35
commit 9598dc5982

View File

@ -218,6 +218,12 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
QSize prefSize;
if (gWidget) {
Corona *corona = qobject_cast<Corona *>(gWidget->scene());
if (corona) {
corona->removeOffscreenWidget(gWidget);
}
lay->addItem(gWidget);
prefSize = gWidget->preferredSize().toSize();
} else if (qWidget) {