summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-12-10 15:43:16 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:18:22 (GMT)
commit90de48493be283b9afb249f6a0fd8dbd8958517d (patch)
tree1d3c4269ecdc662b178ec2847c1bc9bb04d2c9db
parentdd72b151b500838475f2ec40695449a37acd3922 (diff)
downloadQt-90de48493be283b9afb249f6a0fd8dbd8958517d.zip
Qt-90de48493be283b9afb249f6a0fd8dbd8958517d.tar.gz
Qt-90de48493be283b9afb249f6a0fd8dbd8958517d.tar.bz2
Handle the QWidgetPrivate::mapper structure
Dont have widgets without a valid winId there
-rw-r--r--src/gui/kernel/qwidget_qpa.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp
index 24ab8f7..560c9cd 100644
--- a/src/gui/kernel/qwidget_qpa.cpp
+++ b/src/gui/kernel/qwidget_qpa.cpp
@@ -768,6 +768,7 @@ void QWidgetPrivate::deleteTLSysExtra()
context->deleteQGLContext();
}
}
+ setWinId(0);
delete extra->topextra->platformWindow;
extra->topextra->platformWindow = 0;
extra->topextra->backingStore.destroy();