summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-04-12 09:04:41 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-04-12 09:04:41 (GMT)
commit7e032238ef7a91f4a9c1337b5e06204fadbc6f55 (patch)
tree6019965c3a2dd58695c789993bc72abfa0320829 /src/gui/kernel
parent7be267636b69222b18326919b7838c49e502033a (diff)
downloadQt-7e032238ef7a91f4a9c1337b5e06204fadbc6f55.zip
Qt-7e032238ef7a91f4a9c1337b5e06204fadbc6f55.tar.gz
Qt-7e032238ef7a91f4a9c1337b5e06204fadbc6f55.tar.bz2
Revert "Have the backing store destroyed also in special Symbian scenarios."
This reverts commit a12d41076919a133e63de63dff5c1a131a0564e4.
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index be615a4..0a73481 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -234,8 +234,7 @@ void QWidgetBackingStoreTracker::registerWidget(QWidget *w)
*/
void QWidgetBackingStoreTracker::unregisterWidget(QWidget *w)
{
- m_widgets.remove(w);
- if (m_widgets.isEmpty()) {
+ if (m_widgets.remove(w) && m_widgets.isEmpty()) {
delete m_ptr;
m_ptr = 0;
}