summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 4520a1b..8b8768c 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -1448,7 +1448,8 @@ QWidget::~QWidget()
// notify the window it no longer has a surface.
delete d->extra->topextra->backingStore;
d->extra->topextra->backingStore = 0;
- } else if (QWidgetBackingStore *bs = d->maybeBackingStore()) {
+ }
+ if (QWidgetBackingStore *bs = d->maybeBackingStore()) {
bs->removeDirtyWidget(this);
if (testAttribute(Qt::WA_StaticContents))
bs->removeStaticWidget(this);