13
0

rework dbf28e3 (hidden parameters)

This commit is contained in:
Robin Gareus 2015-10-28 21:25:01 +01:00
parent ebbe96aa08
commit be69dd279b

View File

@ -2334,6 +2334,7 @@ RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p
if (x == processor_automation.end()) { if (x == processor_automation.end()) {
rai = new ProcessorAutomationInfo (processor); rai = new ProcessorAutomationInfo (processor);
processor_automation.push_back (rai);
} else { } else {
rai = *x; rai = *x;
} }
@ -2388,10 +2389,7 @@ RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p
mitem->signal_toggled().connect (sigc::bind (sigc::mem_fun(*this, &RouteTimeAxisView::processor_menu_item_toggled), rai, pan)); mitem->signal_toggled().connect (sigc::bind (sigc::mem_fun(*this, &RouteTimeAxisView::processor_menu_item_toggled), rai, pan));
} }
if (items.size() > 0) { if (items.size() == 0) {
processor_automation.push_back (rai);
} else {
delete rai;
return; return;
} }