X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/336775c0587b2b83d671efcda03b0f0ced74aaed..b3cec67186d678d2c3985923bdb8c787455cf369:/src/osx/cocoa/dialog.mm?ds=sidebyside diff --git a/src/osx/cocoa/dialog.mm b/src/osx/cocoa/dialog.mm index c975bdf1e8..4af807536a 100644 --- a/src/osx/cocoa/dialog.mm +++ b/src/osx/cocoa/dialog.mm @@ -45,9 +45,9 @@ void wxDialog::DoShowModal() } */ NSWindow* theWindow = GetWXWindow(); - + NSModalSession session = [NSApp beginModalSessionForWindow:theWindow]; - while (IsModal()) + while (IsModal()) { wxMacAutoreleasePool autoreleasepool; // we cannot break based on the return value, because nested @@ -55,9 +55,9 @@ void wxDialog::DoShowModal() // unsafe [NSApp runModalSession:session]; - // do some idle processing - if (wxTheApp) - wxTheApp->ProcessIdle(); + // do some idle processing + if (wxTheApp) + wxTheApp->ProcessIdle(); } [NSApp endModalSession:session];