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
This commit is contained in:
Steve Youngs 2020-01-05 22:35:59 +00:00 committed by Paul Culley
parent a5b5910f7f
commit 490fb1ea3b

View File

@ -74,7 +74,7 @@ class EditEvent(EditPrimary):
EditPrimary.__init__(self, dbstate, uistate, track, EditPrimary.__init__(self, dbstate, uistate, track,
event, dbstate.db.get_event_from_handle, 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() self._init_event()