mainwindow: wait till search is completed before launching new one
这个提交包含在:
父节点
ae178e34e5
当前提交
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);
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户