From 70fe3489c52339e0f9b38241b1ebe56470b9b210 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Oct 2015 18:16:15 +0000 Subject: Fix explicit sequence port monitoring Patch from Robin Gareus. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5786 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui') 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); -- cgit v1.2.1