From 602f1574ca46abd4d48c0be74aca727398552cee Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 10 Feb 2010 21:20:44 +0000 Subject: [PATCH] - Fix possible race condition in search engine --- src/searchengine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/searchengine.cpp b/src/searchengine.cpp index d05517017..79d8e6528 100644 --- a/src/searchengine.cpp +++ b/src/searchengine.cpp @@ -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());