From 77d07545c52cf118b444f94af5de11f34a5e525c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 8 Mar 2017 18:37:36 +0100 Subject: [PATCH] Don't show Group UI for the master-bus --- gtk2_ardour/route_time_axis.cc | 10 ++++++++-- 1 file 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 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)); -- 2.30.2