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:
parent
32e0e2ed35
commit
9598dc5982
@ -218,6 +218,12 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
|||||||
QSize prefSize;
|
QSize prefSize;
|
||||||
|
|
||||||
if (gWidget) {
|
if (gWidget) {
|
||||||
|
Corona *corona = qobject_cast<Corona *>(gWidget->scene());
|
||||||
|
|
||||||
|
if (corona) {
|
||||||
|
corona->removeOffscreenWidget(gWidget);
|
||||||
|
}
|
||||||
|
|
||||||
lay->addItem(gWidget);
|
lay->addItem(gWidget);
|
||||||
prefSize = gWidget->preferredSize().toSize();
|
prefSize = gWidget->preferredSize().toSize();
|
||||||
} else if (qWidget) {
|
} else if (qWidget) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user