summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcombobox.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-10-10 14:25:45 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-10-12 01:53:42 +0200
commitcdadd1bdb3f0137659f0f82b06628d0b20b858e3 (patch)
tree48d012547b09b52fe0ad2e2a9f4b67af1162d8a6 /src/widgets/widgets/qcombobox.cpp
parentaa37e67ef7f5ff22da0ef95fb5221bc1fff9b3ca (diff)
Allow programmatic closing of windows that are modally blocked
In Qt 6, after changes such as 121fddcf5ae2ab238ef802e44b45ce62c56015f5, we go through the QPA layer to close widget windows properly. Closing and hiding of windows is now done in when we receive and handle the window system's CloseEvent. Such an event to a modally blocked window should be blocked, so that users can't close a modally blocked window. However, if the event is the result of a call to QWindow::close, then it should not be blocked. Luckily, we know that the event is the result of such a call, so let such events through. This restores compatibility with Qt 5, where it was possible to first open a new dialog, and then close the previous dialog. Add a test case. Fixes: QTBUG-107188 Pick-to: 6.4 6.2 Change-Id: Id812c1fc36aa0e1a10dfb8d3a16a11d387289b05 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/widgets/widgets/qcombobox.cpp')
0 files changed, 0 insertions, 0 deletions