From 18b677c807b7d8a0f35c37a119763eb4af0e8a49 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 18 Feb 2014 13:13:07 +0000 Subject: [PATCH] backport of r75899 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/evtloop.mm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/osx/cocoa/evtloop.mm b/src/osx/cocoa/evtloop.mm index 5e4a869394..5465245e4f 100644 --- a/src/osx/cocoa/evtloop.mm +++ b/src/osx/cocoa/evtloop.mm @@ -418,6 +418,7 @@ void wxModalEventLoop::OSXDoRun() { BeginModalSession(m_modalWindow); wxCFEventLoop::OSXDoRun(); + EndModalSession(); } else #endif @@ -428,17 +429,8 @@ void wxModalEventLoop::OSXDoRun() void wxModalEventLoop::OSXDoStop() { -#if OSX_USE_MODAL_SESSION - if ( m_modalWindow ) - { - EndModalSession(); - } - else -#endif - { [NSApp abortModal]; } -} // we need our own version of ProcessIdle here in order to // avoid deletion of pending objects, because ProcessIdle is running