diff options
author | David Robillard <d@drobilla.net> | 2015-04-11 12:34:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-04-11 12:34:23 +0000 |
commit | fd83a88db429aa26e6457d1fb437a21c76f01bc7 (patch) | |
tree | 074f0131bf5fd2755cff83a6821add044924323c /src | |
parent | ca2dd021434af94110ec3e582c627628a57bda16 (diff) | |
download | ingen-fd83a88db429aa26e6457d1fb437a21c76f01bc7.tar.gz ingen-fd83a88db429aa26e6457d1fb437a21c76f01bc7.tar.bz2 ingen-fd83a88db429aa26e6457d1fb437a21c76f01bc7.zip |
Fix crash on failed plugin UI instantiation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5674 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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 abf3b18c..37c8e617 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -229,11 +229,12 @@ NodeModule::embed_gui(bool embed) if (!_plugin_ui) { _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) { + _plugin_ui->signal_property_changed().connect( + sigc::mem_fun(app(), &App::set_property)); + GtkWidget* c_widget = (GtkWidget*)_plugin_ui->get_widget(); _gui_widget = Glib::wrap(c_widget); |