summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 4e149bbf..04a46a9f 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -326,6 +326,11 @@ NodeModule::popup_gui()
_plugin_ui->signal_property_changed().connect(
sigc::mem_fun(app(), &App::set_property));
+ if (!_plugin_ui->instantiated() && !_plugin_ui->instantiate()) {
+ app().log().error("Failed to instantiate LV2 UI\n");
+ return false;
+ }
+
GtkWidget* c_widget = (GtkWidget*)_plugin_ui->get_widget();
_gui_widget = Glib::wrap(c_widget);