diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/Port.cpp | 2 | ||||
-rw-r--r-- | src/gui/RenameWindow.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index b66450ff..ca31e445 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -266,7 +266,7 @@ Port::build_uri_menu() } LilvNode* designation = lilv_new_uri( - world->lilv_world(), designation_atom.ptr<char>()); + world->lilv_world(), world->forge().str(designation_atom, false).c_str()); LilvNode* rdfs_range = lilv_new_uri( world->lilv_world(), LILV_NS_RDFS "range"); diff --git a/src/gui/RenameWindow.cpp b/src/gui/RenameWindow.cpp index d4e3b9a4..5020f6ef 100644 --- a/src/gui/RenameWindow.cpp +++ b/src/gui/RenameWindow.cpp @@ -116,7 +116,8 @@ RenameWindow::ok_clicked() Raul::Path path = _object->path(); const Atom& name_atom = _object->get_property(uris.lv2_name); - if (!label.empty() && (!name_atom.is_valid() || label != name_atom.ptr<char>())) { + if (!label.empty() && (name_atom.type() != uris.forge.String || + label != name_atom.ptr<char>())) { _app->set_property(Node::path_to_uri(path), uris.lv2_name, _app->forge().alloc(label)); |