From c74c91a9e01fb03de37b14a86c760fc592a29d90 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 10 Apr 2014 18:18:02 +0100 Subject: [PATCH] Fix family editor callback --- src/gui/editors/editfamily.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/editors/editfamily.py b/src/gui/editors/editfamily.py index 3c2083dae..3aeaa0cdd 100644 --- a/src/gui/editors/editfamily.py +++ b/src/gui/editors/editfamily.py @@ -334,11 +334,12 @@ class EditFamily(EditPrimary): 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, 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 # family @@ -1080,6 +1081,9 @@ class EditFamily(EditPrimary): self.db.commit_family(self.obj, trans) self._do_close() + if self.callback: + self.callback(self.obj) + self.callback = None def no_name(self): """