Browse Source

Avoid crashes on torrent search

qbittorrent closes itself without any error message when a search tab
should be notified of a status change: fixed bad pointer variable catch
in lambda code.
adaptive-webui-19844
paolo-sz 6 years ago
parent
commit
22835c0350
  1. 2
      src/gui/search/searchwidget.cpp

2
src/gui/search/searchwidget.cpp

@ -337,7 +337,7 @@ void SearchWidget::on_searchButton_clicked() @@ -337,7 +337,7 @@ void SearchWidget::on_searchButton_clicked()
m_ui->tabWidget->setCurrentWidget(newTab);
connect(newTab, &SearchJobWidget::resultsCountUpdated, this, &SearchWidget::resultsCountUpdated);
connect(newTab, &SearchJobWidget::statusChanged, this, [this, &newTab]() { tabStatusChanged(newTab); });
connect(newTab, &SearchJobWidget::statusChanged, this, [this, newTab]() { tabStatusChanged(newTab); });
m_ui->searchButton->setText(tr("Stop"));
m_activeSearchTab = newTab;

Loading…
Cancel
Save