From ad5f574fb71e1783a0b2e5475302b2c35f907fc6 Mon Sep 17 00:00:00 2001 From: saikat Date: Sun, 28 Feb 2010 00:52:51 -0800 Subject: [PATCH] Fix for issue #511 - disabling a menu item in the menu item's action --- AppKit/CPMenuItem/_CPMenuItemMenuBarView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPMenuItem/_CPMenuItemMenuBarView.j b/AppKit/CPMenuItem/_CPMenuItemMenuBarView.j index 6e232fef8..6342ef99e 100644 --- a/AppKit/CPMenuItem/_CPMenuItemMenuBarView.j +++ b/AppKit/CPMenuItem/_CPMenuItemMenuBarView.j @@ -155,7 +155,7 @@ var SelectionColor = nil, { // FIXME: This should probably be even throw. if (![_menuItem isEnabled]) - return; + shouldHighlight = NO; if (shouldHighlight) {