From 2ca819c00b2c631fbc04785e4b33a7e04a0f0e0e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 9 Apr 2016 16:15:54 -0400 Subject: add track controls to its Automatable self --- libs/ardour/track.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 84a6d71349..43dc26122e 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -65,13 +65,16 @@ Track::init () boost::shared_ptr rt = boost::dynamic_pointer_cast (rp); _record_enable_control.reset (new RecordEnableControl (_session, X_("recenable"), *this)); + add_control (_record_enable_control); _record_enable_control->set_flags (Controllable::Toggle); - _monitoring_control.reset (new MonitorControl (_session, X_("monitoring"), *this)); - _record_safe_control.reset (new AutomationControl (_session, RecSafeAutomation, ParameterDescriptor (RecSafeAutomation), boost::shared_ptr (new AutomationList (Evoral::Parameter (RecSafeAutomation))), X_("recsafe"))); + add_control (_record_safe_control); + + _monitoring_control.reset (new MonitorControl (_session, X_("monitoring"), *this)); + add_control (_monitoring_control); track_number_changed.connect_same_thread (*this, boost::bind (&Track::resync_track_name, this)); _session.config.ParameterChanged.connect_same_thread (*this, boost::bind (&Track::parameter_changed, this, _1)); -- cgit v1.2.3