From: Julian Smart Date: Sun, 3 Oct 2004 18:06:15 +0000 (+0000) Subject: Workaround for special menu items not always being enabled. Use X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bdacb147ee3e2b963fd343972885f70d035f5665 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 --- diff --git a/src/mac/carbon/menuitem.cpp b/src/mac/carbon/menuitem.cpp index f3c4f869ee..fee72b9b91 100644 --- a/src/mac/carbon/menuitem.cpp +++ b/src/mac/carbon/menuitem.cpp @@ -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() ;