diff --git a/aqt/editor.py b/aqt/editor.py index 94c8c90ef..b9e83df80 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -546,6 +546,8 @@ class Editor(object): self.widget.hide() def loadNote(self): + if not self.note: + return if self.stealFocus: field = self.currentField else: