diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/RenameWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/RenameWindow.cpp b/src/gui/RenameWindow.cpp index 880277ed..5525e5dc 100644 --- a/src/gui/RenameWindow.cpp +++ b/src/gui/RenameWindow.cpp @@ -116,6 +116,12 @@ 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>())) { + _app->set_property(Node::path_to_uri(path), + uris.lv2_name, + _app->forge().alloc(label)); + } + if (Raul::Symbol::is_valid(symbol_str)) { const Raul::Symbol symbol(symbol_str); if (symbol != _object->symbol()) { @@ -124,12 +130,6 @@ RenameWindow::ok_clicked() } } - if (!label.empty() && (!name_atom.is_valid() || label != name_atom.ptr<char>())) { - _app->set_property(Node::path_to_uri(path), - uris.lv2_name, - _app->forge().alloc(label)); - } - hide(); } |