Only show error info on single query; fix #8

This commit is contained in:
St.Huang 2018-07-07 17:54:02 +08:00
parent f838773a8a
commit eee7fde2b8

View File

@ -93,7 +93,9 @@ class QueryThread(QThread):
if self.manager.update(note, results, success_num):
self.note_flush.emit(note)
except InvalidWordException:
showInfo(_("NO_QUERY_WORD"))
# only show error info on single query
if self.manager.total == 1:
showInfo(_("NO_QUERY_WORD"))
if self.manager:
self.manager.queue.task_done()