ConfigTreeNode.py
changeset 833 3f997fb22928
parent 814 5743cbdff669
child 841 8e19df12b596
--- a/ConfigTreeNode.py	Thu Sep 13 02:15:29 2012 +0200
+++ b/ConfigTreeNode.py	Thu Sep 13 02:18:00 2012 +0200
@@ -352,9 +352,11 @@
 
         # Find a free name, eventually appending digit
         res = DesiredName
+        if DesiredName.endswith("_0"):
+            DesiredName = DesiredName[:-2]
         suffix = 1
         while res in AllNames:
-            res = "%s-%d"%(DesiredName, suffix)
+            res = "%s_%d"%(DesiredName, suffix)
             suffix += 1
         
         # Get old path