From f834239f597f81f9fdb979557d7cd22c7684853f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Dec 2011 23:41:10 +0000 Subject: [PATCH] Use NSApp abortModal instead of stopModal to end modal dialogs. Using abortModal is apparently the right thing to do if the dialog is not being closed as the result of user action (but e.g. because a timer expired) and shouldn't change anything if it done because of something the user did (e.g. clicked on a button). Closes #12467. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/evtloop.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/evtloop.mm b/src/osx/cocoa/evtloop.mm index 3a8568b33d..61de0c4ba4 100644 --- a/src/osx/cocoa/evtloop.mm +++ b/src/osx/cocoa/evtloop.mm @@ -311,7 +311,7 @@ void wxModalEventLoop::DoRun() void wxModalEventLoop::DoStop() { - [NSApp stopModal]; + [NSApp abortModal]; } void wxGUIEventLoop::BeginModalSession( wxWindow* modalWindow ) -- 2.45.2