mainwindow: wait till search is completed before launching new one
Šī revīzija ir iekļauta:
vecāks
ae178e34e5
revīzija
9c40dfea0d
@ -153,6 +153,8 @@ void MainWindow::lineEditReturnPressed()
|
||||
}
|
||||
//TODO: validate q;
|
||||
ui->lblSearchResults->setText("Searching...");
|
||||
searchWatcher.cancel();
|
||||
searchWatcher.waitForFinished();
|
||||
QFuture<QVector<SearchResult>> searchFuture = QtConcurrent::run([&, q]() {
|
||||
SqliteSearch searcher(db);
|
||||
return searcher.search(q);
|
||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user