summaryrefslogtreecommitdiff
path: root/debian/patches/0254-fix-qgraphicsproxywidget-deletion-crash.diff
blob: e9eefe98a7406674616df24004a45cea4d08250f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 

--- a/src/gui/graphicsview/qgraphicsproxywidget.cpp
+++ b/src/gui/graphicsview/qgraphicsproxywidget.cpp
@@ -515,9 +515,8 @@ QGraphicsProxyWidget::~QGraphicsProxyWid
 {
     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;
     }
 }