diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-24 03:01:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-24 03:01:27 +0200 |
commit | 6605b52c1758035b29803deee634514fc5708912 (patch) | |
tree | 0699a1c7a6caa805c1537a88ba4d6ffb5a0ff1eb /gtk2_ardour/editor_routes.cc | |
parent | f683f534a4acf1c87d91ed99e145c8330b1e541a (diff) |
centralize rec-en sensitivity & prepare for rec-safe
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index b9fa3ea3a6..5273ba0513 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -711,6 +711,7 @@ EditorRoutes::routes_added (list<RouteTimeAxisView*> routes) if ((*x)->is_track()) { boost::shared_ptr<Track> t = boost::dynamic_pointer_cast<Track> ((*x)->route()); t->RecordEnableChanged.connect (*this, MISSING_INVALIDATOR, boost::bind (&EditorRoutes::update_rec_display, this), gui_context()); + t->RecordSafeChanged.connect (*this, MISSING_INVALIDATOR, boost::bind (&EditorRoutes::update_rec_display, this), gui_context()); } if ((*x)->is_midi_track()) { @@ -1624,6 +1625,9 @@ EditorRoutes::idle_update_mute_rec_solo_etc() (*i)[_columns.rec_state] = 0; } + // TODO figure out how to make this Cell insensitive + // and see RouteUI::check_rec_enable_sensitivity() + (*i)[_columns.name_editable] = !route->record_enabled (); } } |