Workaround for special menu items not always being enabled. Use

with UI update events.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-10-03 18:06:15 +00:00
parent 7fbe5489ad
commit bdacb147ee

View File

@@ -156,7 +156,13 @@ void wxMenuItem::UpdateItemText()
void wxMenuItem::Enable(bool bDoEnable)
{
if ( m_isEnabled != bDoEnable )
if ( m_isEnabled != bDoEnable
#if TARGET_CARBON
|| GetId() == wxApp::s_macPreferencesMenuItemId
|| GetId() == wxApp::s_macExitMenuItemId
|| GetId() == wxApp::s_macAboutMenuItemId
#endif
)
{
wxMenuItemBase::Enable( bDoEnable ) ;
UpdateItemStatus() ;