summaryrefslogtreecommitdiffstats
path: root/src/gui/RenameWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/RenameWindow.cpp')
-rw-r--r--src/gui/RenameWindow.cpp3
1 files changed, 2 insertions, 1 deletions
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));