Bug fixes

This commit is contained in:
St.Huang 2018-08-19 01:56:39 +08:00
parent 19dc8c91fe
commit 7f678cd31e
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class QueryThread(QtCore.QThread):
self.note_flush.emit(note)
except InvalidWordException:
# only show error info on single query
self.manager.fails += 1
if self.manager.total == 1:
showInfo(_("NO_QUERY_WORD"))

View File

@ -66,6 +66,7 @@ class QueryThread(QThread):
self.note_flush.emit(note)
except InvalidWordException:
# only show error info on single query
self.manager.fails += 1
if self.manager.total == 1:
showInfo(_("NO_QUERY_WORD"))