From 846c604304b9fffd752ec0ca01d3259b16abf189 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 31 May 2013 18:18:42 +0000 Subject: [PATCH] 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 --- src/osx/cocoa/menuitem.mm | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.47.2