summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-03 14:19:44 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-03 14:19:44 +0000
commita936e9669390c4f272db75fa94817d4ae1a133a2 (patch)
tree4c7464dc3362a00a7f5d437d60fbad5303db56fe /gtk2_ardour/processor_box.cc
parent08d7dff3d98660af9acc0bd3ae143b73aeb80aa9 (diff)
Don't allow aux sends from MIDI tracks for the time
being (#4866). git-svn-id: svn://localhost/ardour2/branches/3.0@12549 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index c698aeed06..b161a18663 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -44,6 +44,7 @@
#include "ardour/audioengine.h"
#include "ardour/internal_return.h"
#include "ardour/internal_send.h"
+#include "ardour/midi_track.h"
#include "ardour/plugin_insert.h"
#include "ardour/port_insert.h"
#include "ardour/profile.h"
@@ -858,7 +859,10 @@ ProcessorBox::build_possible_aux_menu ()
{
boost::shared_ptr<RouteList> rl = _session->get_routes_with_internal_returns();
- if (rl->empty()) {
+ if (rl->empty() || boost::dynamic_pointer_cast<MidiTrack> (_route)) {
+ /* No aux sends if there are no busses, or if this route is a MIDI track
+ (one day, but not now ...)
+ */
return 0;
}