From c021a2bc78f804e5418c02a92f54a808e6a14489 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 20 Aug 2001 23:23:05 +0000 Subject: [PATCH] Don't display new alternate names after an edit if hide_altnames is true. svn: r352 --- src/gramps_main.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/gramps_main.py b/src/gramps_main.py index da56d6c36..fdedaad3a 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -2008,17 +2008,18 @@ def redisplay_person_list(person): person_list.set_row_data(0,pos) - for name in person.getAlternateNames(): - pos2 = (person,1) - alt2col[person].append(pos2) - person_list.insert(0,[gname(name,1),person.getId(), - gender,bday.getQuoteDate(), - dday.getQuoteDate(), - sort.build_sort_name(name), - sort.build_sort_birth(bday), - sort.build_sort_death(dday)]) + if Config.hide_altnames == 0: + for name in person.getAlternateNames(): + pos2 = (person,1) + alt2col[person].append(pos2) + person_list.insert(0,[gname(name,1),person.getId(), + gender,bday.getQuoteDate(), + dday.getQuoteDate(), + sort.build_sort_name(name), + 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()