1
0

mainwindow: wait till search is completed before launching new one

Este cometimento está contido em:
Albert S. 2019-08-12 22:59:05 +02:00
ascendente 0528e9067a
cometimento 5e983049f5

Ver ficheiro

@ -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]()
{