Fix exception when changing a family with Add person editor open
fixes #10187
This commit is contained in:
@@ -300,7 +300,7 @@ class EditPerson(EditPrimary):
|
|||||||
|
|
||||||
def _update_families(self):
|
def _update_families(self):
|
||||||
phandle = self.obj.get_handle()
|
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.
|
#new person has no handle yet and cannot be in a family.
|
||||||
person = self.dbstate.db.get_person_from_handle(phandle)
|
person = self.dbstate.db.get_person_from_handle(phandle)
|
||||||
self.obj.set_family_handle_list(person.get_family_handle_list())
|
self.obj.set_family_handle_list(person.get_family_handle_list())
|
||||||
|
Reference in New Issue
Block a user