mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Replace deprecated QAbstractsocket::error with QAbstractSocket::errorOccurred
This commit is contained in:
parent
b293dd2816
commit
24ab523acc
1 changed files with 1 additions and 2 deletions
|
@ -1224,8 +1224,7 @@ void LimitedNodeList::updateLocalSocket() {
|
|||
QTcpSocket* localIPTestSocket = new QTcpSocket;
|
||||
|
||||
connect(localIPTestSocket, &QTcpSocket::connected, this, &LimitedNodeList::connectedForLocalSocketTest);
|
||||
connect(localIPTestSocket, static_cast<void(QTcpSocket::*)(QAbstractSocket::SocketError)>(&QTcpSocket::error),
|
||||
this, &LimitedNodeList::errorTestingLocalSocket);
|
||||
connect(localIPTestSocket, &QTcpSocket::errorOccurred, this, &LimitedNodeList::errorTestingLocalSocket);
|
||||
|
||||
// attempt to connect to our reliable host
|
||||
localIPTestSocket->connectToHost(RELIABLE_LOCAL_IP_CHECK_HOST, RELIABLE_LOCAL_IP_CHECK_PORT);
|
||||
|
|
Loading…
Reference in a new issue