diff options
Diffstat (limited to 'gtk2_ardour/editor_regions.cc')
-rw-r--r-- | gtk2_ardour/editor_regions.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index 6526d4dec5..4e025225f6 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -1682,7 +1682,6 @@ RefPtr<Action> EditorRegions::hide_action () const { return ActionManager::get_action (X_("RegionList"), X_("rlHide")); - } RefPtr<Action> @@ -1700,15 +1699,11 @@ EditorRegions::remove_unused_regions_action () const RefPtr<ToggleAction> EditorRegions::toggle_full_action () const { - Glib::RefPtr<Action> act = ActionManager::get_action (X_("RegionList"), X_("rlShowAll")); - assert (act); - return Glib::RefPtr<ToggleAction>::cast_dynamic (act); + return ActionManager::get_toggle_action (X_("RegionList"), X_("rlShowAll")); } RefPtr<ToggleAction> EditorRegions::toggle_show_auto_regions_action () const { - Glib::RefPtr<Action> act = ActionManager::get_action (X_("RegionList"), X_("rlShowAuto")); - assert (act); - return Glib::RefPtr<ToggleAction>::cast_dynamic (act); + return ActionManager::get_toggle_action (X_("RegionList"), X_("rlShowAuto")); } |