diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-03 20:28:16 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-03 20:28:16 +0100 |
commit | e343434b60d37f64672c1fe7881275054409950c (patch) | |
tree | 45371796cd5c722e28fc37a122a0616ecf64e493 /gtk2_ardour | |
parent | 396644dcf2eed660b84b8249ac57c43ad4165ce9 (diff) |
UI port-events are not limited to outputs.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index fe6b3c70bd..c9950fa527 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -140,11 +140,9 @@ LV2PluginUI::control_changed (uint32_t port_index) bool LV2PluginUI::start_updating(GdkEventAny*) { - if (!_output_ports.empty()) { - _screen_update_connection.disconnect(); - _screen_update_connection = Timers::super_rapid_connect - (sigc::mem_fun(*this, &LV2PluginUI::output_update)); - } + _screen_update_connection.disconnect(); + _screen_update_connection = Timers::super_rapid_connect + (sigc::mem_fun(*this, &LV2PluginUI::output_update)); return false; } @@ -152,10 +150,7 @@ bool LV2PluginUI::stop_updating(GdkEventAny*) { //cout << "stop_updating" << endl; - - if (!_output_ports.empty()) { - _screen_update_connection.disconnect(); - } + _screen_update_connection.disconnect(); return false; } |