Don't display new alternate names after an edit if hide_altnames is true.

svn: r352
This commit is contained in:
Don Allingham 2001-08-20 23:23:05 +00:00
parent 1877d412b7
commit c021a2bc78

View File

@ -2008,17 +2008,18 @@ def redisplay_person_list(person):
person_list.set_row_data(0,pos) person_list.set_row_data(0,pos)
for name in person.getAlternateNames(): if Config.hide_altnames == 0:
pos2 = (person,1) for name in person.getAlternateNames():
alt2col[person].append(pos2) pos2 = (person,1)
person_list.insert(0,[gname(name,1),person.getId(), alt2col[person].append(pos2)
gender,bday.getQuoteDate(), person_list.insert(0,[gname(name,1),person.getId(),
dday.getQuoteDate(), gender,bday.getQuoteDate(),
sort.build_sort_name(name), dday.getQuoteDate(),
sort.build_sort_birth(bday), sort.build_sort_name(name),
sort.build_sort_death(dday)]) sort.build_sort_birth(bday),
sort.build_sort_death(dday)])
person_list.set_row_data(0,pos2) person_list.set_row_data(0,pos2)
sort_person_list() sort_person_list()