Skip to content

Commit

Permalink
Use the callback parameter passed to EditEvent.__init__ by passing it…
Browse files Browse the repository at this point in the history
… to EditPrimary.__init__.

This ensures self.callback is initialised as the calling code expects
  • Loading branch information
stevenyoungs authored and prculley committed Apr 15, 2020
1 parent a5b5910 commit 490fb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/gui/editors/editevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 490fb1e

Please sign in to comment.