summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-08-24 18:25:48 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2018-08-24 18:26:01 -0400
commit03c5a35a8cab887eb040ad2c6d15c47e862d4543 (patch)
treee56c537db392009986da7a1aeccb984a0d0639a0 /libs/ardour
parent0db0d8510861f05bdd713b07062064bc8640f9e1 (diff)
Monitor should be *really* unselectable
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/selection.cc8
1 files changed, 7 insertions, 1 deletions
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<Stripable> s,
return false;
}
+ /* monitor is never selectable */
+
+ if (s->is_monitor()) {
+ return false;
+ }
+
if ((r = boost::dynamic_pointer_cast<Route> (s))) {
/* no selection of inactive routes, though they can be selected