very very slightly more robust exclusion of monitor send from Route::nth_send()
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 1 Feb 2016 03:46:00 +0000 (22:46 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 1 Feb 2016 03:46:00 +0000 (22:46 -0500)
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

index 4dce24d9fbe45bee27014377e9d0c16644fca485..d8c5c2e3b77f4b8fe06c6ed4250877baadf0ba28 100644 (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.
                                */