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
This commit is contained in:
Kevin Hock 2005-03-16 05:16:55 +00:00
parent e400d27dcc
commit e9626c1b1f

View File

@ -675,6 +675,14 @@ void wxMenuBar::MacInstallMenuBar()
else else
EnableMenuCommand( NULL , kHICommandPreferences ) ; 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 #endif
wxMenuList::compatibility_iterator menuIter = m_menus.GetFirst(); wxMenuList::compatibility_iterator menuIter = m_menus.GetFirst();
// //