summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/graph.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index fd143861..a167ebce 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -336,7 +336,7 @@ function Graph() {
if (index.name == new_name) {
return;
}
- if (index2 !== undefined && index.state !== 'temp') {
+ if (index2 !== undefined && index.state !== 'temp' && !compareNames(index.name, new_name)) {
acceptReplace = confirm('"' + index2.name + '" will replace "' + index.name + '", are you sure?');
if (acceptReplace){
for (var i = 0; i < links.length; i++) {