Commit 691b693d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to use qoverload here

parent 0e6878d9
Pipeline #82938 passed with stage
in 5 minutes and 27 seconds
...@@ -141,7 +141,7 @@ void SessionThread::run() ...@@ -141,7 +141,7 @@ void SessionThread::run()
connect(m_socket.get(), &QSslSocket::disconnected, m_parentSession->d, &SessionPrivate::socketDisconnected); connect(m_socket.get(), &QSslSocket::disconnected, m_parentSession->d, &SessionPrivate::socketDisconnected);
connect(m_socket.get(), &QSslSocket::connected, m_parentSession->d, &SessionPrivate::socketConnected); connect(m_socket.get(), &QSslSocket::connected, m_parentSession->d, &SessionPrivate::socketConnected);
connect(m_socket.get(), qOverload<QAbstractSocket::SocketError>(&QAbstractSocket::errorOccurred), this, [this](QAbstractSocket::SocketError err) { connect(m_socket.get(), &QAbstractSocket::errorOccurred, this, [this](QAbstractSocket::SocketError err) {
qCWarning(KSMTP_LOG) << "SMTP Socket error:" << err << m_socket->errorString(); qCWarning(KSMTP_LOG) << "SMTP Socket error:" << err << m_socket->errorString();
Q_EMIT m_parentSession->connectionError(m_socket->errorString()); Q_EMIT m_parentSession->connectionError(m_socket->errorString());
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment