|
|
|
@ -877,7 +877,7 @@ void RPCConsole::showBanTableContextMenu(const QPoint& point)
@@ -877,7 +877,7 @@ void RPCConsole::showBanTableContextMenu(const QPoint& point)
|
|
|
|
|
void RPCConsole::disconnectSelectedNode() |
|
|
|
|
{ |
|
|
|
|
// Get currently selected peer address
|
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->peerWidget, 0, PeerTableModel::Address); |
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->peerWidget, 0, PeerTableModel::Address).toString(); |
|
|
|
|
// Find the node, disconnect it and clear the selected node
|
|
|
|
|
if (CNode *bannedNode = FindNode(strNode.toStdString())) { |
|
|
|
|
bannedNode->fDisconnect = true; |
|
|
|
@ -891,7 +891,7 @@ void RPCConsole::banSelectedNode(int bantime)
@@ -891,7 +891,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
// Get currently selected peer address
|
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->peerWidget, 0, PeerTableModel::Address); |
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->peerWidget, 0, PeerTableModel::Address).toString(); |
|
|
|
|
// Find possible nodes, ban it and clear the selected node
|
|
|
|
|
if (FindNode(strNode.toStdString())) { |
|
|
|
|
std::string nStr = strNode.toStdString(); |
|
|
|
@ -915,7 +915,7 @@ void RPCConsole::unbanSelectedNode()
@@ -915,7 +915,7 @@ void RPCConsole::unbanSelectedNode()
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
// Get currently selected ban address
|
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->banlistWidget, 0, BanTableModel::Address); |
|
|
|
|
QString strNode = GUIUtil::getEntryData(ui->banlistWidget, 0, BanTableModel::Address).toString(); |
|
|
|
|
CSubNet possibleSubnet; |
|
|
|
|
|
|
|
|
|
LookupSubNet(strNode.toStdString().c_str(), possibleSubnet); |
|
|
|
|