Fix UI for Sends & Inserts (regression was in 0c59ba649e)

This commit is contained in:
Robin Gareus 2017-12-16 16:53:05 +01:00
parent 46eed03282
commit 4c7664e3f8

View file

@ -2627,7 +2627,28 @@ ProcessorBox::maybe_add_processor_to_ui_list (boost::weak_ptr<Processor> w)
if (p->window_proxy()) {
return;
}
if (!boost::dynamic_pointer_cast<PluginInsert> (p)) {
/* see also ProcessorBox::get_editor_window */
bool have_ui = false;
if (boost::dynamic_pointer_cast<PluginInsert> (p)) {
have_ui = true;
}
else if (boost::dynamic_pointer_cast<PortInsert> (p)) {
have_ui = true;
}
else if (boost::dynamic_pointer_cast<Send> (p)) {
if (!boost::dynamic_pointer_cast<InternalSend> (p)) {
have_ui = true;
}
}
else if (boost::dynamic_pointer_cast<Return> (p)) {
if (!boost::dynamic_pointer_cast<InternalReturn> (p)) {
have_ui = true;
}
}
if (!have_ui) {
return;
}