use syntactic sugar
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 11 Dec 2018 17:25:12 +0000 (12:25 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 11 Dec 2018 17:25:12 +0000 (12:25 -0500)
gtk2_ardour/mixer_ui.cc

index 6e64ff4f4af9977e78b7fbd9e8047fa6a7c99583..84817d8d4a72f662574354feeb0fea8112e9c5d8 100644 (file)
@@ -2694,12 +2694,9 @@ Mixer_UI::restore_mixer_space ()
 void
 Mixer_UI::monitor_section_attached ()
 {
-       Glib::RefPtr<Action> act = ActionManager::get_action ("Mixer", "ToggleMonitorSection");
-       assert (act); act->set_sensitive (true);
-
-       Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
-       assert (tact);
-       showhide_monitor_section (  tact->get_active () );
+       Glib::RefPtr<ToggleAction> act = ActionManager::get_toggle_action ("Mixer", "ToggleMonitorSection");
+       act->set_sensitive (true);
+       showhide_monitor_section (act->get_active ());
 }
 
 void