@@ -877,7 +877,7 @@ void RPCConsole::showBanTableContextMenu(const QPoint& point)
877877void RPCConsole::disconnectSelectedNode ()
878878{
879879 // Get currently selected peer address
880- QString strNode = GUIUtil::getEntryData (ui->peerWidget , 0 , PeerTableModel::Address);
880+ QString strNode = GUIUtil::getEntryData (ui->peerWidget , 0 , PeerTableModel::Address). toString () ;
881881 // Find the node, disconnect it and clear the selected node
882882 if (CNode *bannedNode = FindNode (strNode.toStdString ())) {
883883 bannedNode->fDisconnect = true ;
@@ -891,7 +891,7 @@ void RPCConsole::banSelectedNode(int bantime)
891891 return ;
892892
893893 // Get currently selected peer address
894- QString strNode = GUIUtil::getEntryData (ui->peerWidget , 0 , PeerTableModel::Address);
894+ QString strNode = GUIUtil::getEntryData (ui->peerWidget , 0 , PeerTableModel::Address). toString () ;
895895 // Find possible nodes, ban it and clear the selected node
896896 if (FindNode (strNode.toStdString ())) {
897897 std::string nStr = strNode.toStdString ();
@@ -915,7 +915,7 @@ void RPCConsole::unbanSelectedNode()
915915 return ;
916916
917917 // Get currently selected ban address
918- QString strNode = GUIUtil::getEntryData (ui->banlistWidget , 0 , BanTableModel::Address);
918+ QString strNode = GUIUtil::getEntryData (ui->banlistWidget , 0 , BanTableModel::Address). toString () ;
919919 CSubNet possibleSubnet;
920920
921921 LookupSubNet (strNode.toStdString ().c_str (), possibleSubnet);
0 commit comments