From 5f4bdb233a53932986e07fca1cd6c87d22c2886f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Dec 2010 23:11:01 +0000 Subject: Clean up plugin preset handling a bit. git-svn-id: svn://localhost/ardour2/branches/3.0@8301 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/lv2_plugin_ui.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/lv2_plugin_ui.cc') diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 89d46846eb..f8924e5bec 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -55,7 +55,8 @@ void LV2PluginUI::on_external_ui_closed(LV2UI_Controller controller) void LV2PluginUI::parameter_changed (uint32_t port_index, float val) { - //cout << "parameter_changed" << endl; + PlugUIBase::parameter_changed (port_index, val); + if (val != _values[port_index]) { parameter_update(port_index, val); } @@ -199,8 +200,6 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title) } } } - - _lv2->ParameterChanged.connect (parameter_connection, invalidator (*this), ui_bind (&LV2PluginUI::parameter_changed, this, _1, _2), gui_context()); } LV2PluginUI::~LV2PluginUI () -- cgit v1.2.3