* src/PeopleView.py: handle changing of surnames if the surname

needs to be removed from the list


svn: r3636
This commit is contained in:
Don Allingham
2004-10-16 21:03:38 +00:00
parent e474fa97b9
commit 3984b9b056
3 changed files with 11 additions and 4 deletions

View File

@ -274,9 +274,12 @@ class PeopleView:
def delete_person(self,person):
node = person.get_handle()
top = person.get_primary_name().get_group_name()
if len(self.person_model.sname_sub[top]) == 1:
path = self.person_model.on_get_path(top)
self.person_model.row_deleted(path)
try:
if len(self.person_model.sname_sub[top]) == 1:
path = self.person_model.on_get_path(top)
self.person_model.row_deleted(path)
except:
pass
path = self.person_model.on_get_path(node)
self.person_model.row_deleted(path)