summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-24 03:01:27 +0200
committerRobin Gareus <robin@gareus.org>2016-05-24 03:01:27 +0200
commit6605b52c1758035b29803deee634514fc5708912 (patch)
tree0699a1c7a6caa805c1537a88ba4d6ffb5a0ff1eb /gtk2_ardour/route_time_axis.cc
parentf683f534a4acf1c87d91ed99e145c8330b1e541a (diff)
centralize rec-en sensitivity & prepare for rec-safe
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index e480485d84..8c475f5acc 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -191,8 +191,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
gm.set_fader_name ("AudioTrackFader");
}
- rec_enable_button->set_sensitive (_session->writable());
-
/* set playlist button tip to the current playlist, and make it update when it changes */
update_playlist_tip ();
track()->PlaylistChanged.connect (*this, invalidator (*this), ui_bind(&RouteTimeAxisView::update_playlist_tip, this), gui_context());
@@ -1825,13 +1823,12 @@ RouteTimeAxisView::map_frozen ()
switch (track()->freeze_state()) {
case Track::Frozen:
playlist_button.set_sensitive (false);
- rec_enable_button->set_sensitive (false);
break;
default:
playlist_button.set_sensitive (true);
- rec_enable_button->set_sensitive (true);
break;
}
+ RouteUI::map_frozen ();
}
void