From 556ea875b7bc45cabc467f9f4522159127fcb394 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sun, 28 Jul 2024 14:37:23 +0200 Subject: [PATCH] Swap order: Comment before URL --- src/core/lv2/Lv2SubPluginFeatures.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/lv2/Lv2SubPluginFeatures.cpp b/src/core/lv2/Lv2SubPluginFeatures.cpp index ff8f6fd62af..66abe2f2e5a 100644 --- a/src/core/lv2/Lv2SubPluginFeatures.cpp +++ b/src/core/lv2/Lv2SubPluginFeatures.cpp @@ -221,14 +221,15 @@ QString Lv2SubPluginFeatures::description( const LilvPlugin* plug = mgr->getPlugin(k.attributes["uri"]); if (plug) { - QString result{lilv_node_as_uri(lilv_plugin_get_uri(plug))}; + QString result; AutoLilvNode rdfs_comment{mgr->uri(LILV_NS_RDFS "comment")}; AutoLilvNodes comments{lilv_plugin_get_value(plug, rdfs_comment.get())}; if (comments) { - result += "\n\n"; result += lilv_node_as_string(lilv_nodes_get_first(comments.get())); + result += "\n\n"; } + result += lilv_node_as_uri(lilv_plugin_get_uri(plug)); return result.trimmed(); } return QObject::tr("failed to load description");