diff options
author | David Robillard <d@drobilla.net> | 2017-02-18 18:40:10 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-18 19:38:13 +0100 |
commit | 24b575cf28f9b007939b9fa14c991c51326c8348 (patch) | |
tree | a47fd87423a842a7c8a18e1edb8fefebdf57562d /src/client | |
parent | f240b08a1799b3aa6a29701c90388d51c0c1b2ce (diff) | |
download | ingen-24b575cf28f9b007939b9fa14c991c51326c8348.tar.gz ingen-24b575cf28f9b007939b9fa14c991c51326c8348.tar.bz2 ingen-24b575cf28f9b007939b9fa14c991c51326c8348.zip |
Fix loading UIs with separate data files
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/PluginUI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 0150cd0d..b4631f0d 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -168,6 +168,7 @@ PluginUI::~PluginUI() lilv_node_free(_ui_node); lilv_node_free(_ui_type); lilv_uis_free(_uis); + lilv_world_unload_resource(_world->lilv_world(), lilv_ui_get_uri(_ui)); } SPtr<PluginUI> @@ -219,11 +220,14 @@ PluginUI::instantiate() { const URIs& uris = _world->uris(); const std::string plugin_uri = _block->plugin()->uri(); + LilvWorld* lworld = _world->lilv_world(); + + // Load seeAlso files to access data like portNotification descriptions + lilv_world_load_resource(lworld, lilv_ui_get_uri(_ui)); /* Subscribe (enable broadcast) for any requested port notifications. This must be done before instantiation so responses to any events sent by the UI's init() will be sent back to this client. */ - LilvWorld* lworld = _world->lilv_world(); LilvNode* ui_portNotification = lilv_new_uri(lworld, LV2_UI__portNotification); LilvNode* ui_plugin = lilv_new_uri(lworld, LV2_UI__plugin); LilvNodes* notes = lilv_world_find_nodes( |