monitor send does not count in Route::nth_send()
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 27 Jan 2016 21:26:41 +0000 (16:26 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 27 Jan 2016 21:26:41 +0000 (16:26 -0500)
libs/ardour/route.cc

index 9c724980f0e650970c7886c3f2cc0fe773e65654..9f29dbad758d5b995deb0f182c433b5ec8f3c0e6 100644 (file)
@@ -4515,6 +4515,14 @@ 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")) {
+                               /* send to monitor section is not considered
+                                  to be an accessible send.
+                               */
+                               continue;
+                       }
+
                        if (n-- == 0) {
                                return *i;
                        }