summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-29 01:32:44 +0000
committerDavid Robillard <d@drobilla.net>2009-05-29 01:32:44 +0000
commit92a48b741ca3eb8698e6ae8f4f6923583d42cd66 (patch)
tree9efe883f128818d399298930ff7ae411d9ff8b71 /src/gui
parent085f5e9c5eec12171596c47c0b70f6634dbc1402 (diff)
downloadingen-92a48b741ca3eb8698e6ae8f4f6923583d42cd66.tar.gz
ingen-92a48b741ca3eb8698e6ae8f4f6923583d42cd66.tar.bz2
ingen-92a48b741ca3eb8698e6ae8f4f6923583d42cd66.zip
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
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp2
1 files changed, 1 insertions, 1 deletions
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<PluginModel> 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);