From a8858ad311d72c9f4d2caf68e5200e6d1dc324d7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 14 Apr 2017 00:53:45 +0200 Subject: [PATCH] Fix toggle-processors: operate on plugins only --- gtk2_ardour/processor_box.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 (*i)) { + continue; + } +#ifdef MIXBUS + if (boost::dynamic_pointer_cast (*i)->is_channelstrip()) { + continue; + } +#endif (*i)->enable (!(*i)->enabled ()); } break;