summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-09-07 11:41:26 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-09-07 21:09:49 +0200
commit121fddcf5ae2ab238ef802e44b45ce62c56015f5 (patch)
tree43b9c9508bbceba0067505f300bb81bdf1979bc6 /src/widgets/dialogs
parent80256b3683ca95907e71a7c127c74b865b1f0fe7 (diff)
Split up close handling in QWidget into a pre and post step
If we are the one initiating the close (from Qt Widget land), we want to mark the widget as closing as early as possible. Clarified the role of close_helper by renaming it to handleClose. Change-Id: Iae250a0ae1583d743c59e99fcb99fdf18d2a1882 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r--src/widgets/dialogs/qdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qdialog.cpp b/src/widgets/dialogs/qdialog.cpp
index c416ba9a5c..9e18e2443a 100644
--- a/src/widgets/dialogs/qdialog.cpp
+++ b/src/widgets/dialogs/qdialog.cpp
@@ -155,7 +155,7 @@ void QDialogPrivate::hide(int resultCode)
q->setResult(resultCode);
q->hide();
- close_helper(QWidgetPrivate::CloseNoEvent);
+ handleClose(QWidgetPrivate::CloseNoEvent);
resetModalitySetByOpen();
}