From 723b54830b26d04e68c6319dcdfb5c1c6240e2b1 Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 24 Jun 2025 15:28:40 +0300 Subject: [PATCH] Add missing editor.nid initialization --- qt/aqt/editor.py | 1 + 1 file changed, 1 insertion(+) 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