From 0a10de647e44afce8de7988794829a1951f9b6aa Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 24 Nov 2007 13:54:20 +0000 Subject: [PATCH] 2007-11-24 Benny Malengier * src/Editors/_EditPerson.py: callback family update bug removed svn: r9395 --- ChangeLog | 3 +++ src/Editors/_EditPerson.py | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5bab817b4..f7bc50d39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-11-24 Benny Malengier + * src/Editors/_EditPerson.py: callback family update bug removed + 2007-11-23 Benny Malengier * src/plugins/Check.py: fix wrong event ref (was fixed in trunk in 2007/02) diff --git a/src/Editors/_EditPerson.py b/src/Editors/_EditPerson.py index 52ebf1546..90b805c21 100644 --- a/src/Editors/_EditPerson.py +++ b/src/Editors/_EditPerson.py @@ -189,11 +189,12 @@ class EditPerson(EditPrimary): def _update_families(self): phandle = self.obj.get_handle() - person = self.dbstate.db.get_person_from_handle(phandle) - self.obj.set_family_handle_list(person.get_family_handle_list()) - self.obj.set_parent_family_handle_list(person.get_parent_family_handle_list()) - #self.person_ref_list.data = self.obj.get_person_ref_list() - #self.person_ref_list.rebuild() + if phandle: + person = self.dbstate.db.get_person_from_handle(phandle) + self.obj.set_family_handle_list(person.get_family_handle_list()) + self.obj.set_parent_family_handle_list(person.get_parent_family_handle_list()) + #self.person_ref_list.data = self.obj.get_person_ref_list() + #self.person_ref_list.rebuild() def _setup_fields(self): """