summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-08-23 01:05:57 +0200
committerRobin Gareus <robin@gareus.org>2019-08-23 01:05:57 +0200
commitb858b3b6924dcda7cab1f9cc9c3767e7c6c64ce6 (patch)
treee69d795aefcc1773ef940ecc03fe95e3b370d2e3 /libs
parent22aa61b674b12e833b36b870a5b891997dea618a (diff)
Detect monitor-send by instance, not name
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/route.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index a83e550c00..075ccd72c1 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -4534,10 +4534,10 @@ Route::nth_send (uint32_t n) const
for (i = _processors.begin(); i != _processors.end(); ++i) {
if (boost::dynamic_pointer_cast<Send> (*i)) {
- if ((*i)->name().find (_("Monitor")) == 0) {
+ if ((*i) == _monitor_send) {
/* send to monitor section is not considered
- to be an accessible send.
- */
+ * to be an accessible send.
+ */
continue;
}