diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 15:49:41 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 15:51:43 (GMT) |
commit | 6c154a5fc2b6e3fe3ccf9dbee709b01c08c27f6c (patch) | |
tree | 931d9745c0a8ca50689f2b60a881834817acbdd8 /src/gui/kernel/qwidget.cpp | |
parent | 544072cae31038ab16425c06186d8bca176f26e4 (diff) | |
download | Qt-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.cpp | 2 |
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); |