From 76783c819cfe091f23be8bbbeb4477171c554cc9 Mon Sep 17 00:00:00 2001 From: Arnaud Demaiziere Date: Wed, 7 Nov 2007 08:41:34 +0000 Subject: [PATCH] clear the results of a search stops it --- Changelog | 3 +++ src/searchEngine.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Changelog b/Changelog index e7e8d4d03..bc9b49488 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Wednesday October 07 2007 - Arnaud Demaiziere - v1.1.0 + - BUGFIX: clear the results of a search stops searching + * Tuesday October 06 2007 - Arnaud Demaiziere - v1.1.0 - BUGFIX: Rename leecher column in finished torrents list - FEATURE: Option allow to start minimized in systray diff --git a/src/searchEngine.cpp b/src/searchEngine.cpp index 7e8691927..b47692a05 100644 --- a/src/searchEngine.cpp +++ b/src/searchEngine.cpp @@ -452,12 +452,19 @@ void SearchEngine::on_stop_search_button_clicked(){ // Clear search results list void SearchEngine::on_clear_button_clicked(){ + // Kill process + searchProcess->terminate(); + search_stopped = true; + searchResultsUrls.clear(); SearchListModel->removeRows(0, SearchListModel->rowCount()); // Disable clear & download buttons clear_button->setEnabled(false); download_button->setEnabled(false); results_lbl->setText(tr("Results")+" (0):"); + // focus on search pattern + search_pattern->clear(); + search_pattern->setFocus(); } void SearchEngine::on_clearPatternButton_clicked() {