mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
Fix toggle-processors: operate on plugins only
This commit is contained in:
parent
181b85c95c
commit
a8858ad311
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue