mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 17:53:08 -07:00
clear the results of a search stops it
This commit is contained in:
parent
42312b982b
commit
76783c819c
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
* Wednesday October 07 2007 - Arnaud Demaiziere <arnaud@qbittorrent.org> - v1.1.0
|
||||||
|
- BUGFIX: clear the results of a search stops searching
|
||||||
|
|
||||||
* Tuesday October 06 2007 - Arnaud Demaiziere <arnaud@qbittorrent.org> - v1.1.0
|
* Tuesday October 06 2007 - Arnaud Demaiziere <arnaud@qbittorrent.org> - v1.1.0
|
||||||
- BUGFIX: Rename leecher column in finished torrents list
|
- BUGFIX: Rename leecher column in finished torrents list
|
||||||
- FEATURE: Option allow to start minimized in systray
|
- FEATURE: Option allow to start minimized in systray
|
||||||
|
|
|
@ -452,12 +452,19 @@ void SearchEngine::on_stop_search_button_clicked(){
|
||||||
|
|
||||||
// Clear search results list
|
// Clear search results list
|
||||||
void SearchEngine::on_clear_button_clicked(){
|
void SearchEngine::on_clear_button_clicked(){
|
||||||
|
// Kill process
|
||||||
|
searchProcess->terminate();
|
||||||
|
search_stopped = true;
|
||||||
|
|
||||||
searchResultsUrls.clear();
|
searchResultsUrls.clear();
|
||||||
SearchListModel->removeRows(0, SearchListModel->rowCount());
|
SearchListModel->removeRows(0, SearchListModel->rowCount());
|
||||||
// Disable clear & download buttons
|
// Disable clear & download buttons
|
||||||
clear_button->setEnabled(false);
|
clear_button->setEnabled(false);
|
||||||
download_button->setEnabled(false);
|
download_button->setEnabled(false);
|
||||||
results_lbl->setText(tr("Results")+" <i>(0)</i>:");
|
results_lbl->setText(tr("Results")+" <i>(0)</i>:");
|
||||||
|
// focus on search pattern
|
||||||
|
search_pattern->clear();
|
||||||
|
search_pattern->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchEngine::on_clearPatternButton_clicked() {
|
void SearchEngine::on_clearPatternButton_clicked() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue