Fix exception when changing a family with Add person editor open

fixes #10187
This commit is contained in:
prculley 2017-10-06 17:03:41 -05:00 committed by Nick Hall
parent 05800c530a
commit 1f9f08c3c5

View File

@ -300,7 +300,7 @@ class EditPerson(EditPrimary):
def _update_families(self):
phandle = self.obj.get_handle()
if phandle:
if self.dbstate.db.has_person_handle(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())