Fix family editor callback
This commit is contained in:
parent
64d87eaeb2
commit
c74c91a9e0
@ -334,11 +334,12 @@ class EditFamily(EditPrimary):
|
|||||||
|
|
||||||
QR_CATEGORY = CATEGORY_QR_FAMILY
|
QR_CATEGORY = CATEGORY_QR_FAMILY
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate, track, family):
|
def __init__(self, dbstate, uistate, track, family, callback=None):
|
||||||
|
|
||||||
EditPrimary.__init__(self, dbstate, uistate, track,
|
EditPrimary.__init__(self, dbstate, uistate, track,
|
||||||
family, dbstate.db.get_family_from_handle,
|
family, dbstate.db.get_family_from_handle,
|
||||||
dbstate.db.get_family_from_gramps_id)
|
dbstate.db.get_family_from_gramps_id,
|
||||||
|
callback)
|
||||||
|
|
||||||
# look for the scenerio of a child and no parents on a new
|
# look for the scenerio of a child and no parents on a new
|
||||||
# family
|
# family
|
||||||
@ -1080,6 +1081,9 @@ class EditFamily(EditPrimary):
|
|||||||
self.db.commit_family(self.obj, trans)
|
self.db.commit_family(self.obj, trans)
|
||||||
|
|
||||||
self._do_close()
|
self._do_close()
|
||||||
|
if self.callback:
|
||||||
|
self.callback(self.obj)
|
||||||
|
self.callback = None
|
||||||
|
|
||||||
def no_name(self):
|
def no_name(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user