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