diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/menu/simple_menu_model.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/menu/simple_menu_model.cc b/views/controls/menu/simple_menu_model.cc index 67a9e2d..87b5de9 100644 --- a/views/controls/menu/simple_menu_model.cc +++ b/views/controls/menu/simple_menu_model.cc @@ -104,7 +104,8 @@ bool SimpleMenuModel::IsItemCheckedAt(int index) const { if (!delegate_) return false; int item_index = FlipIndex(index); - return (items_[item_index].type == TYPE_CHECK) ? + Menu2Model::ItemType item_type = items_[item_index].type; + return (item_type == TYPE_CHECK || item_type == TYPE_RADIO) ? delegate_->IsCommandIdChecked(GetCommandIdAt(index)) : false; } |