13
0

Fix toggle-processors: operate on plugins only

This commit is contained in:
Robin Gareus 2017-04-14 00:53:45 +02:00
parent 181b85c95c
commit a8858ad311

View File

@ -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;