3783: NewPerson Dialogue: "available surname list" shows each occurrence of a family name instead of one per family name
svn: r14975
This commit is contained in:
parent
902b343897
commit
6b1c15db54
@ -1298,7 +1298,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
return
|
return
|
||||||
name = unicode(person.get_primary_name().get_surname())
|
name = unicode(person.get_primary_name().get_surname())
|
||||||
i = bisect.bisect(self.surname_list, name)
|
i = bisect.bisect(self.surname_list, name)
|
||||||
if 0 < i < len(self.surname_list):
|
if 0 < i <= len(self.surname_list):
|
||||||
if self.surname_list[i-1] != name:
|
if self.surname_list[i-1] != name:
|
||||||
self.surname_list.insert(i, name)
|
self.surname_list.insert(i, name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user