}
}
+
+void
+ARDOUR_UI::toggle_use_monitor_section ()
+{
+ RefPtr<Action> act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection");
+ assert (act); RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
+ assert (tact);
+
+ bool yn = tact->get_active ();
+
+ if (yn) {
+ _session->add_monitor_section ();
+ } else {
+ _session->remove_monitor_section ();
+ }
+
+ Config->set_use_monitor_bus (yn);
+}