From 7a829f269b2dfcc24292b8dc351d26afb60a7568 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 6 Dec 2014 22:04:35 +0200 Subject: graph: avoid nop name renames --- src/model/graph.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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){ -- cgit v1.3.1