From a9365bc1267ddd4eb9c538915069a873b814815c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 10 Feb 2010 21:21:43 +0000 Subject: [PATCH] - Fix possible race condition in search engine --- Changelog | 1 + src/searchengine.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog b/Changelog index 135c595ab..6451c799a 100644 --- a/Changelog +++ b/Changelog @@ -4,6 +4,7 @@ - BUGFIX: Link against boost and ssl to fix issues with gold linker - BUGFIX: Fix memory leak in RSS - BUGFIX: Improved HTTP gzip compression detection in downloader + - BUGFIX: Fix possible race condition in search engine * Mon Feb 8 2010 - Christophe Dumez - v2.1.4 - BUGFIX: Fix file prioritizing in a torrent diff --git a/src/searchengine.cpp b/src/searchengine.cpp index eafcc5003..a8929b5f3 100644 --- a/src/searchengine.cpp +++ b/src/searchengine.cpp @@ -210,6 +210,7 @@ void SearchEngine::on_search_button_clicked(){ search_button->setText("Search"); return; } + searchProcess->waitForFinished(); // Reload environment variables (proxy) searchProcess->setEnvironment(QProcess::systemEnvironment());