From: Stefan Csomor Date: Fri, 31 May 2013 18:18:42 +0000 (+0000) Subject: make sure we have a default handling the quit command, see #12402 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/846c604304b9fffd752ec0ca01d3259b16abf189 make sure we have a default handling the quit command, see #12402 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/menuitem.mm b/src/osx/cocoa/menuitem.mm index 0c6c930e32..05179eca9e 100644 --- a/src/osx/cocoa/menuitem.mm +++ b/src/osx/cocoa/menuitem.mm @@ -311,6 +311,10 @@ bool wxMenuItemCocoaImpl::DoDefault() [theNSApplication unhideAllApplications:nil]; handled=true; } + else if (menuid == wxApp::s_macExitMenuItemId) + { + wxTheApp->ExitMainLoop(); + } return handled; }