]> git.saurik.com Git - wxWidgets.git/commitdiff
Workaround for special menu items not always being enabled. Use
authorJulian Smart <julian@anthemion.co.uk>
Sun, 3 Oct 2004 18:06:15 +0000 (18:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 3 Oct 2004 18:06:15 +0000 (18:06 +0000)
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

index f3c4f869eeed010e5f9a57d4b2c0bbad1a8aadb6..fee72b9b912935c4418683323c776799c144c7f8 100644 (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() ;