mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
- Fix possible race condition in search engine
This commit is contained in:
parent
358f7d16da
commit
602f1574ca
1 changed files with 1 additions and 2 deletions
|
@ -216,10 +216,9 @@ void SearchEngine::on_search_button_clicked(){
|
||||||
if(search_button->text() != tr("Search")) {
|
if(search_button->text() != tr("Search")) {
|
||||||
search_button->setText(tr("Search"));
|
search_button->setText(tr("Search"));
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
searchProcess->waitForFinished(1000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
searchProcess->waitForFinished();
|
||||||
// Reload environment variables (proxy)
|
// Reload environment variables (proxy)
|
||||||
searchProcess->setEnvironment(QProcess::systemEnvironment());
|
searchProcess->setEnvironment(QProcess::systemEnvironment());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue