Browse Source

Merge pull request #10345 from paolo-sz/master

Avoid crashes on torrent search
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
480aa01ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/search/searchjobwidget.cpp
  2. 2
      src/gui/search/searchwidget.cpp

2
src/gui/search/searchjobwidget.cpp

@ -163,6 +163,8 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
QShortcut *enterHotkey = new QShortcut(Qt::Key_Return, m_ui->resultsBrowser, nullptr, nullptr, Qt::WidgetShortcut); QShortcut *enterHotkey = new QShortcut(Qt::Key_Return, m_ui->resultsBrowser, nullptr, nullptr, Qt::WidgetShortcut);
connect(enterHotkey, &QShortcut::activated, this, &SearchJobWidget::downloadTorrents); connect(enterHotkey, &QShortcut::activated, this, &SearchJobWidget::downloadTorrents);
setStatusTip(statusText(m_status));
} }
SearchJobWidget::~SearchJobWidget() SearchJobWidget::~SearchJobWidget()

2
src/gui/search/searchwidget.cpp

@ -337,7 +337,7 @@ void SearchWidget::on_searchButton_clicked()
m_ui->tabWidget->setCurrentWidget(newTab); m_ui->tabWidget->setCurrentWidget(newTab);
connect(newTab, &SearchJobWidget::resultsCountUpdated, this, &SearchWidget::resultsCountUpdated); 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_ui->searchButton->setText(tr("Stop"));
m_activeSearchTab = newTab; m_activeSearchTab = newTab;

Loading…
Cancel
Save