@@ -1008,11 +1008,11 @@ void RPCConsole::disconnectSelectedNode()
1008
1008
return ;
1009
1009
1010
1010
// Get selected peer addresses
1011
- QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->peerWidget , 0 );
1011
+ QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->peerWidget , PeerTableModel::NetNodeId );
1012
1012
for (int i = 0 ; i < nodes.count (); i++)
1013
1013
{
1014
1014
// Get currently selected peer address
1015
- NodeId id = nodes.at (i).data (PeerTableModel::NetNodeId ).toInt ();
1015
+ NodeId id = nodes.at (i).data ().toInt ();
1016
1016
// Find the node, disconnect it and clear the selected node
1017
1017
if (g_connman->DisconnectNode (id))
1018
1018
clearSelectedNode ();
@@ -1025,11 +1025,11 @@ void RPCConsole::banSelectedNode(int bantime)
1025
1025
return ;
1026
1026
1027
1027
// Get selected peer addresses
1028
- QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->peerWidget , 0 );
1028
+ QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->peerWidget , PeerTableModel::NetNodeId );
1029
1029
for (int i = 0 ; i < nodes.count (); i++)
1030
1030
{
1031
1031
// Get currently selected peer address
1032
- NodeId id = nodes.at (i).data (PeerTableModel::NetNodeId ).toInt ();
1032
+ NodeId id = nodes.at (i).data ().toInt ();
1033
1033
1034
1034
// Get currently selected peer address
1035
1035
int detailNodeRow = clientModel->getPeerTableModel ()->getRowByNodeId (id);
@@ -1052,11 +1052,11 @@ void RPCConsole::unbanSelectedNode()
1052
1052
return ;
1053
1053
1054
1054
// Get selected ban addresses
1055
- QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->banlistWidget , 0 );
1055
+ QList<QModelIndex> nodes = GUIUtil::getEntryData (ui->banlistWidget , BanTableModel::Address );
1056
1056
for (int i = 0 ; i < nodes.count (); i++)
1057
1057
{
1058
1058
// Get currently selected ban address
1059
- QString strNode = nodes.at (i).data (BanTableModel::Address ).toString ();
1059
+ QString strNode = nodes.at (i).data ().toString ();
1060
1060
CSubNet possibleSubnet;
1061
1061
1062
1062
LookupSubNet (strNode.toStdString ().c_str (), possibleSubnet);
0 commit comments