diff options
author | David Robillard <d@drobilla.net> | 2015-03-08 08:30:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-08 08:30:57 +0000 |
commit | b05bcc01029cbf01aa4bf8ab7d4e6c93458fd432 (patch) | |
tree | 47ae6b883a5f1f0df6c22add18719191e51a160e /src/gui | |
parent | ece884c9c7c7802d92539cef7fbcc69c41ad21c5 (diff) | |
download | ingen-b05bcc01029cbf01aa4bf8ab7d4e6c93458fd432.tar.gz ingen-b05bcc01029cbf01aa4bf8ab7d4e6c93458fd432.tar.bz2 ingen-b05bcc01029cbf01aa4bf8ab7d4e6c93458fd432.zip |
Fix UI update on custom UI control changes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5623 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/NodeModule.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index c03618cf..528b8e0f 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -228,8 +228,9 @@ NodeModule::embed_gui(bool embed) } if (!_plugin_ui) { - const PluginModel* const pm = dynamic_cast<const PluginModel*>(_block->plugin()); - _plugin_ui = pm->ui(app().world(), _block); + _plugin_ui = _block->plugin_model()->ui(app().world(), _block); + _plugin_ui->signal_property_changed().connect( + sigc::mem_fun(app(), &App::set_property)); } if (_plugin_ui) { |