diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 4ae96f0cd..a9ee3db72 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -118,6 +118,7 @@ class Editor: self.mw = mw self.widget = widget self.parentWindow = parentWindow + self.nid: NoteId | None = None # legacy argument provided? if addMode is not None: editor_mode = EditorMode.ADD_CARDS if addMode else EditorMode.EDIT_CURRENT