mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Set "enter" as shortcut to download the selected torrents in search job
This commit is contained in:
parent
5251d93b3d
commit
bc8b838953
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
|
|||
connect(searchHandler, &SearchHandler::searchFinished, this, &SearchJobWidget::searchFinished);
|
||||
connect(searchHandler, &SearchHandler::searchFailed, this, &SearchJobWidget::searchFailed);
|
||||
connect(this, &QObject::destroyed, searchHandler, &QObject::deleteLater);
|
||||
|
||||
QShortcut *enterHotkey = new QShortcut(Qt::Key_Return, m_ui->resultsBrowser, nullptr, nullptr, Qt::WidgetShortcut);
|
||||
connect(enterHotkey, &QShortcut::activated, this, &SearchJobWidget::downloadTorrents);
|
||||
}
|
||||
|
||||
SearchJobWidget::~SearchJobWidget()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue