Index: app/menus/button_menu_item_model.cc |
=================================================================== |
--- app/menus/button_menu_item_model.cc (revision 54011) |
+++ app/menus/button_menu_item_model.cc (working copy) |
@@ -103,8 +103,12 @@ |
} |
bool ButtonMenuItemModel::IsEnabledAt(int index) const { |
+ return IsCommandIdEnabled(items_[index].command_id); |
+} |
+ |
+bool ButtonMenuItemModel::IsCommandIdEnabled(int command_id) const { |
if (delegate_) |
- return delegate_->IsCommandIdEnabled(items_[index].command_id); |
+ return delegate_->IsCommandIdEnabled(command_id); |
return true; |
} |
Property changes on: app\menus\button_menu_item_model.cc |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |