Merge pull request #98 from ttempe/bug-in-browser

Avoid calling checkValid on an empty note
This commit is contained in:
Damien Elmes 2015-01-01 10:50:31 +10:00
commit 360ef43460

View file

@ -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()