Do not allow to deactivate master-bus

This commit is contained in:
Robin Gareus 2022-01-26 17:19:54 +01:00
parent 1aca71e22b
commit 2796d7250b
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 11 additions and 3 deletions

View file

@ -1816,7 +1816,11 @@ RouteUI::set_route_active (bool a, bool apply_to_selection)
{
if (apply_to_selection) {
ARDOUR_UI::instance()->the_editor().get_selection().tracks.foreach_route_ui (boost::bind (&RouteUI::set_route_active, _1, a, false));
} else {
} else if (!is_master ()
#ifdef MIXBUS
&& !_route->mixbus()
#endif
) {
_route->set_active (a, this);
}
}