mainwindow: wait till search is completed before launching new one
Šī revīzija ir iekļauta:
vecāks
0528e9067a
revīzija
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]()
|
||||
{
|
||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user