mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Merge pull request #10345 from paolo-sz/master
Avoid crashes on torrent search
This commit is contained in:
commit
480aa01ea6
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue