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 "Use new connect api"

This reverts commit 94b97995.

This causes massive memory leaks and makes maildispatcher unable to send
mails.

CCMAIL: montel@kde.org
parent 72c07348
......@@ -356,12 +356,8 @@ 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,12 +229,8 @@ 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