Add shortcut for "Ban peer permanently" function

PR #18576.
This commit is contained in:
Luka Čelebić 2023-02-17 05:09:23 +01:00 committed by GitHub
parent 1e913f46f0
commit 917190d936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,8 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent)
handleSortColumnChanged(header()->sortIndicatorSection());
const auto *copyHotkey = new QShortcut(QKeySequence::Copy, this, nullptr, nullptr, Qt::WidgetShortcut);
connect(copyHotkey, &QShortcut::activated, this, &PeerListWidget::copySelectedPeers);
const auto *deleteHotkey = new QShortcut(QKeySequence::Delete, this, nullptr, nullptr, Qt::WidgetShortcut);
connect(deleteHotkey, &QShortcut::activated, this, &PeerListWidget::banSelectedPeers);
}
PeerListWidget::~PeerListWidget()