Browse Source

- Fix possible race condition in search engine

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
602f1574ca
  1. 3
      src/searchengine.cpp

3
src/searchengine.cpp

@ -216,10 +216,9 @@ void SearchEngine::on_search_button_clicked(){ @@ -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());

Loading…
Cancel
Save