summaryrefslogtreecommitdiffstats
path: root/app/menus/button_menu_item_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/menus/button_menu_item_model.h')
-rw-r--r--app/menus/button_menu_item_model.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/menus/button_menu_item_model.h b/app/menus/button_menu_item_model.h
index 8e3300e..38f8cf9 100644
--- a/app/menus/button_menu_item_model.h
+++ b/app/menus/button_menu_item_model.h
@@ -32,6 +32,9 @@ class ButtonMenuItemModel {
// Performs the action associated with the specified command id.
virtual void ExecuteCommand(int command_id) = 0;
virtual bool IsCommandIdEnabled(int command_id) const { return true; }
+
+ protected:
+ virtual ~Delegate() {}
};
ButtonMenuItemModel(int string_id, ButtonMenuItemModel::Delegate* delegate);