Skip to content

Commit

Permalink
Swap order: Comment before URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jul 28, 2024
1 parent 6b57bea commit 556ea87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/lv2/Lv2SubPluginFeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 556ea87

Please sign in to comment.