|
|
@ -1118,7 +1118,7 @@ void RPCConsole::disconnectSelectedNode()
|
|
|
|
for(int i = 0; i < nodes.count(); i++)
|
|
|
|
for(int i = 0; i < nodes.count(); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Get currently selected peer address
|
|
|
|
// Get currently selected peer address
|
|
|
|
NodeId id = nodes.at(i).data().toInt();
|
|
|
|
NodeId id = nodes.at(i).data().toLongLong();
|
|
|
|
// Find the node, disconnect it and clear the selected node
|
|
|
|
// Find the node, disconnect it and clear the selected node
|
|
|
|
if(g_connman->DisconnectNode(id))
|
|
|
|
if(g_connman->DisconnectNode(id))
|
|
|
|
clearSelectedNode();
|
|
|
|
clearSelectedNode();
|
|
|
@ -1135,7 +1135,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
|
|
|
for(int i = 0; i < nodes.count(); i++)
|
|
|
|
for(int i = 0; i < nodes.count(); i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Get currently selected peer address
|
|
|
|
// Get currently selected peer address
|
|
|
|
NodeId id = nodes.at(i).data().toInt();
|
|
|
|
NodeId id = nodes.at(i).data().toLongLong();
|
|
|
|
|
|
|
|
|
|
|
|
// Get currently selected peer address
|
|
|
|
// Get currently selected peer address
|
|
|
|
int detailNodeRow = clientModel->getPeerTableModel()->getRowByNodeId(id);
|
|
|
|
int detailNodeRow = clientModel->getPeerTableModel()->getRowByNodeId(id);
|
|
|
|