diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-27 16:26:41 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-27 16:26:41 -0500 |
commit | 7513176501cd1c94845875aa326c57870c143e1b (patch) | |
tree | e5e52d8306c048050d0d5e5ce5824083a2a837eb | |
parent | 66686a4e2a0b9e8eee82285b07ed83974dd0cd8c (diff) |
monitor send does not count in Route::nth_send()
-rw-r--r-- | libs/ardour/route.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 9c724980f0..9f29dbad75 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -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; } |