From 49491384c9f810eec3cdd511e14bab75488c8fd0 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 24 Nov 2007 13:53:04 +0000 Subject: [PATCH] 2007-11-24 Benny Malengier * src/Editors/_EditPerson.py: callback family update bug removed svn: r9394 --- ChangeLog | 3 +++ src/Editors/_EditPerson.py | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 398b90a6f..d1d34f88c 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-24 Jerome Rapinat * src/DataViews/_PersonView.py: TransUtils issue with gettext context * src/glade/gramps.glade: Inconsistent label in "Associations", issue #1390 diff --git a/src/Editors/_EditPerson.py b/src/Editors/_EditPerson.py index 4f1039eb1..2dc64dd87 100644 --- a/src/Editors/_EditPerson.py +++ b/src/Editors/_EditPerson.py @@ -187,9 +187,11 @@ 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( + if phandle: + #new person has no handle yet and cannot be in a family. + 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()) def _setup_fields(self):