LibreVNA-GUI: Fix usage of QAbstractSocket's slot 'errorOccurred'
This commit is contained in:
parent
8b17a445c7
commit
714953f8aa
@ -125,8 +125,8 @@ bool LibreVNATCPDriver::connectTo(QString serial)
|
||||
// sockets are connected now
|
||||
dataBuffer.clear();
|
||||
logBuffer.clear();
|
||||
connect(&dataSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
connect(&logSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
connect(&dataSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::errorOccurred), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
connect(&logSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::errorOccurred), this, &LibreVNATCPDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
|
||||
qInfo() << "TCP connection established" << Qt::flush;
|
||||
this->serial = serial;
|
||||
|
@ -90,7 +90,7 @@ bool SSA3000XDriver::connectTo(QString serial)
|
||||
return false;
|
||||
}
|
||||
|
||||
connect(&dataSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &SSA3000XDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
connect(&dataSocket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::errorOccurred), this, &SSA3000XDriver::ConnectionLost, Qt::QueuedConnection);
|
||||
|
||||
// grab model information
|
||||
dataSocket.write("*IDN?\r\n");
|
||||
|
Loading…
Reference in New Issue
Block a user