diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-06 22:04:35 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-06 22:04:35 +0200 |
| commit | 7a829f269b2dfcc24292b8dc351d26afb60a7568 (patch) | |
| tree | 4583af7b1fc3f559b4aeba097293d99dbfc6c9e4 | |
| parent | 3cd15311507bfb4844ef6b7802b0a90c9741f1fe (diff) | |
graph: avoid nop name renames
| -rw-r--r-- | src/model/graph.js | 3 |
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){ |
