summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-04-14 00:53:45 +0200
committerRobin Gareus <robin@gareus.org>2017-04-14 00:53:45 +0200
commita8858ad311d72c9f4d2caf68e5200e6d1dc324d7 (patch)
tree4f44fa8209199b7af0b12a8f4fb3356169d86b46 /gtk2_ardour/processor_box.cc
parent181b85c95cf0cedf24d841059818e0ecf997f667 (diff)
Fix toggle-processors: operate on plugins only
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index 52831ee6ac..bd6f90ba87 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -2324,6 +2324,18 @@ ProcessorBox::processor_operation (ProcessorOperation op)
case ProcessorsToggleActive:
for (ProcSelection::iterator i = targets.begin(); i != targets.end(); ++i) {
+ if (!(*i)->display_to_user ()) {
+ assert (0); // these should not be selectable to begin with.
+ continue;
+ }
+ if (!boost::dynamic_pointer_cast<PluginInsert> (*i)) {
+ continue;
+ }
+#ifdef MIXBUS
+ if (boost::dynamic_pointer_cast<PluginInsert> (*i)->is_channelstrip()) {
+ continue;
+ }
+#endif
(*i)->enable (!(*i)->enabled ());
}
break;