don't throw error when returning from Cards dialog with invalid search

This commit is contained in:
Damien Elmes 2012-05-31 18:05:13 +09:00
parent 32e40ae078
commit b41fc89b71

View file

@ -546,6 +546,8 @@ class Editor(object):
self.widget.hide() self.widget.hide()
def loadNote(self): def loadNote(self):
if not self.note:
return
if self.stealFocus: if self.stealFocus:
field = self.currentField field = self.currentField
else: else: