Browse Source

Add shortcut for "Ban peer permanently" function

PR #18576.
adaptive-webui-19844
Luka Čelebić 2 years ago committed by GitHub
parent
commit
917190d936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/properties/peerlistwidget.cpp

2
src/gui/properties/peerlistwidget.cpp

@ -182,6 +182,8 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent) @@ -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()

Loading…
Cancel
Save