Store: Fix no books found dialog showing too often.

This commit is contained in:
John Schember 2011-04-24 00:21:28 -04:00
parent d4de706fc8
commit 70da6dd852

View File

@ -206,7 +206,7 @@ class SearchDialog(QDialog, Ui_Dialog):
if res: if res:
self.results_view.model().add_result(res, store_plugin) self.results_view.model().add_result(res, store_plugin)
if not self.results_view.model().has_results(): if not self.search_pool.threads_running() and not self.results_view.model().has_results():
info_dialog(self, _('No matches'), _('Couldn\'t find any books matching your query.'), show=True, show_copy_button=False) info_dialog(self, _('No matches'), _('Couldn\'t find any books matching your query.'), show=True, show_copy_button=False)