Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Revert "Revert "Use new connect api""

This reverts commit 96e83e94.

The actual issue has been found in 72c07348

CCMAIL: montel@kde.org
parent 7e6e7e0d
......@@ -352,8 +352,12 @@ void SessionPrivate::socketDisconnected()
void SessionPrivate::startSsl(KTcpSocket::SslVersion version)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(m_thread, [this, version] {m_thread->startSsl(version); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(m_thread, "startSsl", Qt::QueuedConnection,
Q_ARG(KTcpSocket::SslVersion, version));
#endif
}
KTcpSocket::SslVersion SessionPrivate::negotiatedEncryption() const
......
......@@ -229,8 +229,12 @@ void SessionThread::sslConnected()
void SessionThread::handleSslErrorResponse(bool ignoreError)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, [this, ignoreError] {doHandleSslErrorResponse(ignoreError); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "doHandleSslErrorResponse", Qt::QueuedConnection,
Q_ARG(bool, ignoreError));
#endif
}
void SessionThread::doHandleSslErrorResponse(bool ignoreError)
......
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