From 60225956989f53f4576886b129b771a9f69b3a6f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 Apr 2012 02:14:12 +0000 Subject: 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 --- src/client/PluginModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client') 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 PluginModel::ui(Ingen::Shared::World* world, SharedPtr node) const { - if (_type != LV2) + if (!_lilv_plugin) { return SharedPtr(); + } return PluginUI::create(world, node, _lilv_plugin); } -- cgit v1.2.1