diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-31 22:46:00 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-31 22:46:00 -0500 |
commit | 7d81ad1d68224efeb2815f1958ee46a6245190d2 (patch) | |
tree | 57c0168c0720c638d8de8259b3a73b89cef71759 | |
parent | 55967972b6dceb38a46f971267466d66a2670862 (diff) |
very very slightly more robust exclusion of monitor send from Route::nth_send()
some sessions name that send "Monitor" and some "Monitor 1"
The correct solution is a test of whether the send is connected to the monitor section.
-rw-r--r-- | libs/ardour/route.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 4dce24d9fb..d8c5c2e3b7 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4264,7 +4264,7 @@ 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() == _("Monitor 1")) { + if ((*i)->name().find (_("Monitor")) == 0) { /* send to monitor section is not considered to be an accessible send. */ |