X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0068a2c4993aaedf3e8575d0f841833fe61b81cf..0afeb753e0a6a3fdba290bf3612bb2f012d44d95:/src/osx/cocoa/menuitem.mm 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; }