From 7d81ad1d68224efeb2815f1958ee46a6245190d2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 31 Jan 2016 22:46:00 -0500 Subject: 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. --- libs/ardour/route.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (*i)) { - if ((*i)->name() == _("Monitor 1")) { + if ((*i)->name().find (_("Monitor")) == 0) { /* send to monitor section is not considered to be an accessible send. */ -- cgit v1.2.3