summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 02:26:46 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 02:26:46 +0000
commit8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef (patch)
tree687624fd73bf021fb6d1296f1d50b163393ec7f6 /src/gui
parent211beb645d1337f9f7590378681dd891e954740c (diff)
downloadingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.tar.gz
ingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.tar.bz2
ingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.zip
Fire signal and update GUI correctly when renaming ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4251 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-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 ffda6dd4..3584c12e 100644
--- a/src/gui/RenameWindow.cpp
+++ b/src/gui/RenameWindow.cpp
@@ -86,7 +86,8 @@ RenameWindow::values_changed()
} else if (!Path::is_valid_name(symbol)) {
_message_label->set_text("Symbol contains invalid characters");
_ok_button->property_sensitive() = false;
- } else if (_app->store()->object(_object->parent()->path().child(symbol))) {
+ } else if (_object->symbol() != symbol &&
+ _app->store()->object(_object->parent()->path().child(symbol))) {
_message_label->set_text("An object already exists with that path");
_ok_button->property_sensitive() = false;
} else if (label.empty()) {