From 03c5a35a8cab887eb040ad2c6d15c47e862d4543 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 24 Aug 2018 18:25:48 -0400 Subject: Monitor should be *really* unselectable --- libs/ardour/selection.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libs/ardour/selection.cc') diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc index ac83429d62..10dc50003c 100644 --- a/libs/ardour/selection.cc +++ b/libs/ardour/selection.cc @@ -122,7 +122,7 @@ CoreSelection::select_adjacent_stripable (bool mixer_order, bool routes_only, /* 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)) { return; } @@ -157,6 +157,12 @@ CoreSelection::select_stripable_and_maybe_group (boost::shared_ptr s, return false; } + /* monitor is never selectable */ + + if (s->is_monitor()) { + return false; + } + if ((r = boost::dynamic_pointer_cast (s))) { /* no selection of inactive routes, though they can be selected -- cgit v1.2.3