Cocoa: cleanup modal sessions for dialogs not run with .exec()
For modal dialogs not run through QDialog.exec(), the modal sessions were not cleaned up, causing the application's menus to be inaccessible. Task-number: QTBUG-37699 Change-Id: I2704c23fec8989aa2e8ddcc3d5e3f21bb6c5db73 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>bb10
parent
b5f2843791
commit
83ecf1e97d
|
|
@ -870,6 +870,9 @@ void QCocoaEventDispatcherPrivate::processPostedEvents()
|
|||
return;
|
||||
}
|
||||
|
||||
if (cleanupModalSessionsNeeded && currentExecIsNSAppRun)
|
||||
cleanupModalSessions();
|
||||
|
||||
if (processEventsCalled > 0 && interrupt) {
|
||||
if (currentExecIsNSAppRun) {
|
||||
// The event dispatcher has been interrupted. But since
|
||||
|
|
|
|||
Loading…
Reference in New Issue