summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-25 02:14:12 +0000
committerDavid Robillard <d@drobilla.net>2012-04-25 02:14:12 +0000
commit60225956989f53f4576886b129b771a9f69b3a6f (patch)
tree106feed603d423356c1ae4ba35c08cb23f7999dc /src/client
parent15d4fba20c9fc2be562d73b72d8e8041b847976b (diff)
downloadingen-60225956989f53f4576886b129b771a9f69b3a6f.tar.gz
ingen-60225956989f53f4576886b129b771a9f69b3a6f.tar.bz2
ingen-60225956989f53f4576886b129b771a9f69b3a6f.zip
Preserve node UI embedded state and fix repeated embedding/de-embedding.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4269 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/PluginModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 4381d979..6a5912a8 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -195,8 +195,9 @@ SharedPtr<PluginUI>
PluginModel::ui(Ingen::Shared::World* world,
SharedPtr<const NodeModel> node) const
{
- if (_type != LV2)
+ if (!_lilv_plugin) {
return SharedPtr<PluginUI>();
+ }
return PluginUI::create(world, node, _lilv_plugin);
}