events gramplet: check for existing family
This commit is contained in:
parent
6e68cc3f73
commit
feee26f74a
@ -174,8 +174,9 @@ class PersonEvents(Events):
|
|||||||
return True
|
return True
|
||||||
for family_handle in active_person.get_family_handle_list():
|
for family_handle in active_person.get_family_handle_list():
|
||||||
family = self.dbstate.db.get_family_from_handle(family_handle)
|
family = self.dbstate.db.get_family_from_handle(family_handle)
|
||||||
for event_ref in family.get_event_ref_list():
|
if family:
|
||||||
return True
|
for event_ref in family.get_event_ref_list():
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def main(self): # return false finishes
|
def main(self): # return false finishes
|
||||||
|
Loading…
Reference in New Issue
Block a user