Detect monitor-send by instance, not name
authorRobin Gareus <robin@gareus.org>
Thu, 22 Aug 2019 23:05:57 +0000 (01:05 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 22 Aug 2019 23:05:57 +0000 (01:05 +0200)
libs/ardour/route.cc

index a83e550c00c6e46f716c85884762f3d326db0893..075ccd72c18f3a81f629ea954a52d9e91b8e826f 100644 (file)
@@ -4534,10 +4534,10 @@ 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().find (_("Monitor")) == 0) {
+                       if ((*i) == _monitor_send) {
                                /* send to monitor section is not considered
-                                  to be an accessible send.
-                               */
+                                * to be an accessible send.
+                                */
                                continue;
                        }