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.
This commit is contained in:
Paul Davis 2016-01-31 22:46:00 -05:00
parent 55967972b6
commit 7d81ad1d68

View File

@ -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.
*/