From 490fb1ea3be931edb81e69cf68ec6e68d65c767c Mon Sep 17 00:00:00 2001 From: Steve Youngs Date: Sun, 5 Jan 2020 22:35:59 +0000 Subject: [PATCH] Use the callback parameter passed to EditEvent.__init__ by passing it to EditPrimary.__init__. This ensures self.callback is initialised as the calling code expects --- gramps/gui/editors/editevent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/editors/editevent.py b/gramps/gui/editors/editevent.py index af56791abc8..1d3d76e6400 100644 --- a/gramps/gui/editors/editevent.py +++ b/gramps/gui/editors/editevent.py @@ -74,7 +74,7 @@ def __init__(self, dbstate, uistate, track, event, callback=None): EditPrimary.__init__(self, dbstate, uistate, track, event, dbstate.db.get_event_from_handle, - dbstate.db.get_event_from_gramps_id) + dbstate.db.get_event_from_gramps_id, callback) self._init_event()