summaryrefslogtreecommitdiffstats
path: root/src/gui/PropertiesWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-09 17:44:36 +0100
committerDavid Robillard <d@drobilla.net>2019-12-12 19:42:09 +0100
commit3c0ed6b66b6e99c68fc01c86b5796a55d74a5977 (patch)
tree7be3252c13ef123b956424169c1bfbf55359564a /src/gui/PropertiesWindow.cpp
parente32f32a360f2bf8f017ea347b6d1e568c0beaf68 (diff)
downloadingen-3c0ed6b66b6e99c68fc01c86b5796a55d74a5977.tar.gz
ingen-3c0ed6b66b6e99c68fc01c86b5796a55d74a5977.tar.bz2
ingen-3c0ed6b66b6e99c68fc01c86b5796a55d74a5977.zip
WIP: Port to serd1serd1
Diffstat (limited to 'src/gui/PropertiesWindow.cpp')
-rw-r--r--src/gui/PropertiesWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/PropertiesWindow.cpp b/src/gui/PropertiesWindow.cpp
index 9912f73a..32ed24e5 100644
--- a/src/gui/PropertiesWindow.cpp
+++ b/src/gui/PropertiesWindow.cpp
@@ -114,7 +114,8 @@ PropertiesWindow::add_property(const URI& key, const Atom& value)
LilvNode* prop = lilv_new_uri(world.lilv_world(), key.c_str());
std::string name = rdfs::label(world, prop);
if (name.empty()) {
- name = world.rdf_world()->prefixes().qualify(key);
+ const auto qname = world.env().qualify(key);
+ name = qname ? std::string(*qname) : key.str();
}
Gtk::Label* label = new Gtk::Label(
std::string("<a href=\"") + key.string() + "\">" + name + "</a>",