13
0

Monitor should be *really* unselectable

This commit is contained in:
Paul Davis 2018-08-24 18:25:48 -04:00
parent 0db0d85108
commit 03c5a35a8c

View File

@ -122,7 +122,7 @@ CoreSelection::select_adjacent_stripable (bool mixer_order, bool routes_only,
/* monitor is never selectable anywhere. for now, anyway */ /* monitor is never selectable anywhere. for now, anyway */
if ((!routes_only || r) && !(*s)->is_monitor()) { if (!routes_only || r) {
if (select_stripable_and_maybe_group (*s, true, routes_only, 0)) { if (select_stripable_and_maybe_group (*s, true, routes_only, 0)) {
return; return;
} }
@ -157,6 +157,12 @@ CoreSelection::select_stripable_and_maybe_group (boost::shared_ptr<Stripable> s,
return false; return false;
} }
/* monitor is never selectable */
if (s->is_monitor()) {
return false;
}
if ((r = boost::dynamic_pointer_cast<Route> (s))) { if ((r = boost::dynamic_pointer_cast<Route> (s))) {
/* no selection of inactive routes, though they can be selected /* no selection of inactive routes, though they can be selected