mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 11:24:15 +00:00
Merge pull request #10345 from paolo-sz/master
Avoid crashes on torrent search
This commit is contained in:
commit
480aa01ea6
@ -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…
x
Reference in New Issue
Block a user