diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-08 18:37:36 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-08 18:37:36 +0100 |
commit | 77d07545c52cf118b444f94af5de11f34a5e525c (patch) | |
tree | 137ab68ad424686b4774ef240b33cf10228fb85b /gtk2_ardour/route_time_axis.cc | |
parent | 46fe83cfff0d188ec215c8bf5380aa673cb08aa7 (diff) |
Don't show Group UI for the master-bus
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 992a19df0e..a6147a6493 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -220,6 +220,10 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt) controls_meters_size_group->add_widget (gm.get_level_meter()); } + if (_route->is_master()) { + route_group_button.set_sensitive(false); + } + _route->meter_change.connect (*this, invalidator (*this), bind (&RouteTimeAxisView::meter_changed, this), gui_context()); _route->input()->changed.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::io_changed, this, _1, _2), gui_context()); _route->output()->changed.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::io_changed, this, _1, _2), gui_context()); @@ -858,8 +862,10 @@ RouteTimeAxisView::build_display_menu () r.push_back (route ()); } - route_group_menu->build (r); - items.push_back (MenuElem (_("Group"), *route_group_menu->menu ())); + if (!_route->is_master()) { + route_group_menu->build (r); + items.push_back (MenuElem (_("Group"), *route_group_menu->menu ())); + } build_automation_action_menu (true); items.push_back (MenuElem (_("Automation"), *automation_action_menu)); |