From: Paul Davis Date: Mon, 1 Feb 2016 03:46:00 +0000 (-0500) Subject: very very slightly more robust exclusion of monitor send from Route::nth_send() X-Git-Tag: 4.7~188 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=7d81ad1d68224efeb2815f1958ee46a6245190d2;ds=sidebyside 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. --- 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. */