mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #98 from ttempe/bug-in-browser
Avoid calling checkValid on an empty note
This commit is contained in:
commit
360ef43460
1 changed files with 2 additions and 0 deletions
|
@ -462,6 +462,8 @@ class Editor(object):
|
||||||
"editFocusLost", False, self.note, self.currentField):
|
"editFocusLost", False, self.note, self.currentField):
|
||||||
# something updated the note; schedule reload
|
# something updated the note; schedule reload
|
||||||
def onUpdate():
|
def onUpdate():
|
||||||
|
if not self.note:
|
||||||
|
return
|
||||||
self.stealFocus = True
|
self.stealFocus = True
|
||||||
self.loadNote()
|
self.loadNote()
|
||||||
self.checkValid()
|
self.checkValid()
|
||||||
|
|
Loading…
Reference in a new issue