summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-05-12 15:49:41 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-05-12 15:51:43 (GMT)
commit6c154a5fc2b6e3fe3ccf9dbee709b01c08c27f6c (patch)
tree931d9745c0a8ca50689f2b60a881834817acbdd8 /src/gui/kernel/qwidget.cpp
parent544072cae31038ab16425c06186d8bca176f26e4 (diff)
downloadQt-6c154a5fc2b6e3fe3ccf9dbee709b01c08c27f6c.zip
Qt-6c154a5fc2b6e3fe3ccf9dbee709b01c08c27f6c.tar.gz
Qt-6c154a5fc2b6e3fe3ccf9dbee709b01c08c27f6c.tar.bz2
Ensure that windows hidden by deletion affect closeOnLastWindow
Our destructor didn't call close, which meant that we never emitted lastWindowClosed. Task-number: 253333 Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index b7c4d33..0942f8b 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -1345,7 +1345,7 @@ QWidget::~QWidget()
d->setDirtyOpaqueRegion();
if (isWindow() && isVisible() && internalWinId())
- hide();
+ d->close_helper(QWidgetPrivate::CloseNoEvent);
#if defined(Q_WS_WIN) || defined(Q_WS_X11)
else if (!internalWinId() && isVisible())
qApp->d_func()->sendSyntheticEnterLeave(this);