events gramplet: check for existing family
This commit is contained in:
parent
b0ca451c78
commit
85a000ce67
@ -174,6 +174,7 @@ class PersonEvents(Events):
|
||||
return True
|
||||
for family_handle in active_person.get_family_handle_list():
|
||||
family = self.dbstate.db.get_family_from_handle(family_handle)
|
||||
if family:
|
||||
for event_ref in family.get_event_ref_list():
|
||||
return True
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user