- Fix possible race condition in search engine

This commit is contained in:
Christophe Dumez 2010-02-10 21:20:44 +00:00
parent 358f7d16da
commit 602f1574ca

View file

@ -216,10 +216,9 @@ void SearchEngine::on_search_button_clicked(){
if(search_button->text() != tr("Search")) {
search_button->setText(tr("Search"));
return;
} else {
searchProcess->waitForFinished(1000);
}
}
searchProcess->waitForFinished();
// Reload environment variables (proxy)
searchProcess->setEnvironment(QProcess::systemEnvironment());