Fix typo in 37aaa2d1
[ardour.git] / gtk2_ardour / vca_time_axis.cc
index 6a125a31d33c489bc0fdec21dc98aed8608de37c..32eacdfc767b330d9a98dbed014ab73519a53da3 100644 (file)
@@ -111,7 +111,9 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca
        gain_meter.get_gain_slider().show ();
 
        controls_ebox.set_name (controls_base_unselected_name);
-       time_axis_sample.set_name (controls_base_unselected_name);
+       time_axis_frame.set_name (controls_base_unselected_name);
+
+       s->MonitorBusAddedOrRemoved.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::set_button_names, this), gui_context());
 
        s->config.ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context());
        Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context());
@@ -120,6 +122,7 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca
 
 VCATimeAxisView::~VCATimeAxisView ()
 {
+       delete automation_action_menu;
 }
 
 void
@@ -135,7 +138,7 @@ VCATimeAxisView::parameter_changed (std::string const & p)
 {
        if (p == "track-name-number") {
                update_track_number_visibility();
-       } else if (p == "use-monitor-bus" || p == "solo-control-is-listen-control" || p == "listen-position") {
+       } else if (p == "solo-control-is-listen-control" || p == "listen-position") {
                set_button_names ();
        }
 }