diff --git a/owlet/owletclient.cpp b/owlet/owletclient.cpp index cefd9494..c9ed5e7c 100644 --- a/owlet/owletclient.cpp +++ b/owlet/owletclient.cpp @@ -29,7 +29,8 @@ void OwletClient::connectToHost(const QHostAddress &address, int port) }); }); - connect(m_socket, &QTcpSocket::errorOccurred, this, [this](){ + typedef void (QTcpSocket:: *errorSignal)(QAbstractSocket::SocketError); + connect(m_socket, static_cast(&QTcpSocket::error), this, [this](){ qCDebug(dcOwlet()) << "Error in owlet communication"; emit error(); });