File 0254-fix-qgraphicsproxywidget-deletion-crash.diff of Package libqt4

qt-bugs@ issue : none
Trolltech task ID : None
applied: no
author: Alexis Menard <alexis.menard@trolltech.com>

Fix deletion of a qgraphicsproxywidget if it is in a layout

Will be included in 4.4.4 

Index: src/gui/graphicsview/qgraphicsproxywidget.cpp
===================================================================
--- src/gui/graphicsview/qgraphicsproxywidget.cpp	(revision 863839)
+++ src/gui/graphicsview/qgraphicsproxywidget.cpp	(working copy)
@@ -521,9 +521,8 @@
 {
     Q_D(QGraphicsProxyWidget);
     if (d->widget) {
-        QWidget *w = d->widget;
-        setWidget(0);
-        delete w;
+	QObject::disconnect(d->widget, SIGNAL(destroyed()), this, SLOT(_q_removeWidgetSlot()));
+       delete d->widget;
     }
 }
openSUSE Build Service is sponsored by