From b41fc89b71823eb7ed03aa69c58c37381375c342 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 31 May 2012 18:05:13 +0900 Subject: [PATCH] don't throw error when returning from Cards dialog with invalid search --- aqt/editor.py | 2 ++ 1 file changed, 2 insertions(+) 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: