mainwindow: wait till search is completed before launching new one

这个提交包含在:
Albert S. 2019-08-12 22:59:05 +02:00
父节点 0528e9067a
当前提交 5e983049f5

查看文件

@ -157,6 +157,8 @@ void MainWindow::lineEditReturnPressed()
}
// TODO: validate q;
ui->lblSearchResults->setText("Searching...");
searchWatcher.cancel();
searchWatcher.waitForFinished();
QFuture<QVector<SearchResult>> searchFuture = QtConcurrent::run(
[&, q]()
{