mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 17:53:08 -07:00
- Fixed nbResult != 0 when clearing results while a search is running
This commit is contained in:
parent
56b018fb95
commit
efb8315a38
1 changed files with 2 additions and 1 deletions
|
@ -465,12 +465,13 @@ void SearchEngine::on_clear_button_clicked(){
|
||||||
// Kill process
|
// Kill process
|
||||||
searchProcess->terminate();
|
searchProcess->terminate();
|
||||||
search_stopped = true;
|
search_stopped = true;
|
||||||
|
searchTimeout->stop();
|
||||||
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);
|
||||||
|
nb_search_results = 0;
|
||||||
results_lbl->setText(tr("Results")+" <i>(0)</i>:");
|
results_lbl->setText(tr("Results")+" <i>(0)</i>:");
|
||||||
// focus on search pattern
|
// focus on search pattern
|
||||||
search_pattern->clear();
|
search_pattern->clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue