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:
parent
c2717ed3f2
commit
42de815ffb
@ -221,6 +221,12 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
|||||||
QSize prefSize;
|
QSize prefSize;
|
||||||
|
|
||||||
if (gWidget) {
|
if (gWidget) {
|
||||||
|
if (proxy) {
|
||||||
|
proxy->setWidget(0);
|
||||||
|
delete proxy;
|
||||||
|
proxy = 0;
|
||||||
|
}
|
||||||
|
|
||||||
Corona *corona = qobject_cast<Corona *>(gWidget->scene());
|
Corona *corona = qobject_cast<Corona *>(gWidget->scene());
|
||||||
|
|
||||||
if (corona) {
|
if (corona) {
|
||||||
|
Loading…
Reference in New Issue
Block a user