From e9626c1b1f5ad7fcd36f6afcd46cfae819e3e945 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Wed, 16 Mar 2005 05:16:55 +0000 Subject: [PATCH] Quit application menu item needs special handling like the Preferences item. [ patch 1160343 ] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/menu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index 91e3471243..4a88133f5d 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -675,6 +675,14 @@ void wxMenuBar::MacInstallMenuBar() else EnableMenuCommand( NULL , kHICommandPreferences ) ; } + if ( UMAGetSystemVersion() >= 0x1000 && wxApp::s_macExitMenuItemId) + { + wxMenuItem *item = FindItem( wxApp::s_macExitMenuItemId , NULL ) ; + if ( item == NULL || !(item->IsEnabled()) ) + DisableMenuCommand( NULL , kHICommandQuit ) ; + else + EnableMenuCommand( NULL , kHICommandQuit ) ; + } #endif wxMenuList::compatibility_iterator menuIter = m_menus.GetFirst(); //