* src/plugins/WriteFTree.py: increment the count properly
svn: r2166
This commit is contained in:
parent
18243b32d7
commit
53cc112eb2
@ -153,10 +153,6 @@ class FtreeWriter:
|
|||||||
ErrorDialog(m1,m2)
|
ErrorDialog(m1,m2)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.flist = {}
|
|
||||||
for key in self.plist.keys():
|
|
||||||
p = self.db.getPerson(key)
|
|
||||||
|
|
||||||
name_map = {}
|
name_map = {}
|
||||||
id_map = {}
|
id_map = {}
|
||||||
id_name = {}
|
id_name = {}
|
||||||
@ -177,6 +173,7 @@ class FtreeWriter:
|
|||||||
nn = "%s%d" % (n,count)
|
nn = "%s%d" % (n,count)
|
||||||
if not name_map.has_key(nn):
|
if not name_map.has_key(nn):
|
||||||
break;
|
break;
|
||||||
|
count += 1
|
||||||
name_map[nn] = key
|
name_map[nn] = key
|
||||||
id_map[key] = nn
|
id_map[key] = nn
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user