Don't show Group UI for the master-bus

This commit is contained in:
Robin Gareus 2017-03-08 18:37:36 +01:00
parent 46fe83cfff
commit 77d07545c5

View file

@ -220,6 +220,10 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
controls_meters_size_group->add_widget (gm.get_level_meter()); 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->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->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()); _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 ()); r.push_back (route ());
} }
route_group_menu->build (r); if (!_route->is_master()) {
items.push_back (MenuElem (_("Group"), *route_group_menu->menu ())); route_group_menu->build (r);
items.push_back (MenuElem (_("Group"), *route_group_menu->menu ()));
}
build_automation_action_menu (true); build_automation_action_menu (true);
items.push_back (MenuElem (_("Automation"), *automation_action_menu)); items.push_back (MenuElem (_("Automation"), *automation_action_menu));