mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 23:45:52 +00:00
fixed bug in CPMenu where action would be sent when the user clicked on a disabled menu item.
This commit is contained in:
1 parent
648fbe1b10
commit
1411410f4e
1 file changed
+1
-1
@@ -648,7 +648,7 @@ var _CPMenuBarVisible = NO,
|
||||
while ([highlightedItem submenu] && [highlightedItem action] === @selector(submenuAction:))
|
||||
highlightedItem = [[highlightedItem submenu] highlightedItem];
|
||||
|
||||
if (highlightedItem)
|
||||
if (highlightedItem && [highlightedItem isEnabled])
|
||||
[CPApp sendAction:[highlightedItem action] to:[highlightedItem target] from:highlightedItem];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user