mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't throw error when returning from Cards dialog with invalid search
This commit is contained in:
parent
32e40ae078
commit
b41fc89b71
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue