summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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){