Skip to content

Commit c56e082

Browse files
committed
qt: add copy subnet action banned peer
This adds a copy subnet context menu action for peers in the banned peer table
1 parent 201c5e4 commit c56e082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
706706

707707
// create ban table context menu
708708
banTableContextMenu = new QMenu(this);
709+
//: Context menu action to copy the subnet of a banned peer
710+
banTableContextMenu->addAction(tr("Copy subnet"), [this] {
711+
GUIUtil::copyEntryData(ui->banlistWidget, BanTableModel::Address, Qt::DisplayRole);
712+
});
713+
banTableContextMenu->addSeparator();
709714
banTableContextMenu->addAction(tr("&Unban"), this, &RPCConsole::unbanSelectedNode);
710715
connect(ui->banlistWidget, &QTableView::customContextMenuRequested, this, &RPCConsole::showBanTableContextMenu);
711716

0 commit comments

Comments
 (0)