summaryrefslogtreecommitdiffstats
path: root/src/client/net/serverconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/net/serverconnection.cpp')
-rw-r--r--src/client/net/serverconnection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/net/serverconnection.cpp b/src/client/net/serverconnection.cpp
index e500528..aae7538 100644
--- a/src/client/net/serverconnection.cpp
+++ b/src/client/net/serverconnection.cpp
@@ -25,7 +25,8 @@ ServerConnection::ServerConnection(const QString& host, const quint16 port, cons
connect(_socket, &QSslSocket::encrypted, this, &ServerConnection::sock_connected);
connect(_socket, &QSslSocket::readyRead, this, &ServerConnection::sock_dataArrival);
connect(_socket, &QSslSocket::disconnected, this, &ServerConnection::sock_closed);
- connect(_socket, &QSslSocket::errorOccurred, this, &ServerConnection::sock_error);
+ connect(_socket, QOverload<QAbstractSocket::SocketError>::of(&QSslSocket::errorOccurred),
+ this, &ServerConnection::sock_error);
connect(_socket, QOverload<const QList<QSslError> &>::of(&QSslSocket::sslErrors),
this, &ServerConnection::sslErrors
);