From 92a48b741ca3eb8698e6ae8f4f6923583d42cd66 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 May 2009 01:32:44 +0000 Subject: Make connection parsing consistent with other parse methods. Connection updates via HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2046 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 2cc6ea24..26eff17c 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -315,7 +315,7 @@ PatchCanvas::add_plugin(SharedPtr p) if (_internal_menu && p->type() == Plugin::Internal) { _internal_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(p->human_name(), sigc::bind(sigc::mem_fun(this, &PatchCanvas::load_plugin), p))); - } else if (_plugin_menu && p->type() == Plugin::LV2) { + } else if (_plugin_menu && p->type() == Plugin::LV2 && p->slv2_plugin()) { SLV2PluginClass pc = slv2_plugin_get_class(p->slv2_plugin()); SLV2Value class_uri = slv2_plugin_class_get_uri(pc); const char* class_uri_str = slv2_value_as_string(class_uri); -- cgit v1.2.1