From bdacb147ee3e2b963fd343972885f70d035f5665 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 3 Oct 2004 18:06:15 +0000 Subject: [PATCH] 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 --- src/mac/carbon/menuitem.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() ; -- 2.49.0