13
0

GenericUI: remove duplicate connection to signal

Now that there isn't an early return anymore for Dropdowns, the common
path takes care of connecting the display update code to the correct
signal.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-07-28 23:07:44 +02:00
parent d26c3d380d
commit 3365722b8b

View File

@ -723,10 +723,6 @@ GenericPluginUI::build_control_ui (const Evoral::Parameter& param,
i->second)));
}
mcontrol->Changed.connect(control_connections, invalidator(*this),
boost::bind(&GenericPluginUI::ui_parameter_changed,
this, control_ui),
gui_context());
if (use_knob) {
control_ui->knobtable = manage (new Table());
@ -925,7 +921,10 @@ GenericPluginUI::build_control_ui (const Evoral::Parameter& param,
}
if (mcontrol) {
mcontrol->Changed.connect (control_connections, invalidator (*this), boost::bind (&GenericPluginUI::ui_parameter_changed, this, control_ui), gui_context());
mcontrol->Changed.connect(control_connections, invalidator(*this),
boost::bind(&GenericPluginUI::ui_parameter_changed,
this, control_ui),
gui_context());
}
return control_ui;