summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-06 22:04:35 +0200
committerAlon Levy <alon@pobox.com>2014-12-06 22:04:35 +0200
commit7a829f269b2dfcc24292b8dc351d26afb60a7568 (patch)
tree4583af7b1fc3f559b4aeba097293d99dbfc6c9e4 /src/model
parent3cd15311507bfb4844ef6b7802b0a90c9741f1fe (diff)
graph: avoid nop name renames
Diffstat (limited to 'src/model')
-rw-r--r--src/model/graph.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index 4a2e1f0c..96a55808 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -333,6 +333,9 @@ function Graph() {
if (index === undefined) {
return;
}
+ if (index.name == new_name) {
+ return;
+ }
if (index2 !== undefined && index.state !== 'temp') {
acceptReplace = confirm('"' + index2.name + '" will replace "' + index.name + '", are you sure?');
if (acceptReplace){