diff options
author | Tor Arne Vestbø <torarnv@gmail.com> | 2021-01-11 17:19:14 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-01-12 12:44:35 +0000 |
commit | 163d9c7cc46aa9174fdaaac8d64d8050f05c0a1f (patch) | |
tree | c77e4e409e34f9d52096fa58486892f263a5e454 /src/plugins/sqldrivers | |
parent | 376e3bd8ecf40881685714f6f19e12d68e92127e (diff) |
macOS: Don't try to close already-closed/closing file dialog
Doing so results in a warning about "modalSession has been exited
prematurely - check for a reentrant call to endModalSession:", and
on Big Sur will also result in the file failing to save because the
return code from runModal will no longer be NSModalResponseOK.
This would happen when the completion handler for beginSheetModalForWindow
would call QNSOpenSavePanelDelegate_panelClosed, resulting in calls to
QDialog::done(), which in turn tries to hide the dialog, via
QCocoaFileDialogHelper::hideCocoaFilePanel().
Pick-to: 6.0 5.15
Fixes: QTBUG-89959
Change-Id: I048afe3dcc7fe62e0d0273f12b4b2c0237abb052
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers')
0 files changed, 0 insertions, 0 deletions