summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-22 01:45:18 +0100
committerRobin Gareus <robin@gareus.org>2020-01-22 01:45:18 +0100
commit81c3bf175a311b8dffab62d775db9829d438a5c7 (patch)
treec1c95a48d0101a7cbed472c3833d23fa82a50877 /gtk2_ardour/route_time_axis.cc
parent6914671736cd1d35c628308e5852545cb1813da1 (diff)
Keep track/bus number visible when disabling track
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 1166fb8be8..357ee29a91 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -447,10 +447,12 @@ RouteTimeAxisView::update_track_number_visibility ()
}
if (number_label.get_parent()) {
- controls_table.remove (number_label);
+ number_label.get_parent()->remove (number_label);
}
if (show_label) {
- if (ARDOUR::Profile->get_mixbus()) {
+ if (!_route->active()) {
+ inactive_table.attach (number_label, 0, 1, 0, 1, Gtk::SHRINK, Gtk::EXPAND|Gtk::FILL, 1, 0);
+ } else if (ARDOUR::Profile->get_mixbus()) {
controls_table.attach (number_label, 3, 4, 0, 1, Gtk::SHRINK, Gtk::EXPAND|Gtk::FILL, 1, 0);
} else {
controls_table.attach (number_label, 0, 1, 0, 1, Gtk::SHRINK, Gtk::EXPAND|Gtk::FILL, 1, 0);
@@ -470,6 +472,8 @@ RouteTimeAxisView::update_track_number_visibility ()
void
RouteTimeAxisView::route_active_changed ()
{
+ RouteUI::route_active_changed ();
+ update_track_number_visibility ();
}
void