Commit 48a7718a authored by Volker Krause's avatar Volker Krause
Browse files

Fix build with KF 5.65

parent 220b9c61
......@@ -44,9 +44,9 @@ extern "C" {
#include <QSslSocket>
// remove this include when we can require KF 5.65 (TCPSlaveBase will use QSslSocket internally)
#include <kio_version.h>
#include <KTcpSocket>
#include <kio/slaveinterface.h>
#define GREETING_BUF_LEN 1024
......@@ -633,8 +633,10 @@ bool POP3Protocol::pop3_open()
proxy.setType(QNetworkProxy::NoProxy);
if (QSslSocket *sock = qobject_cast<QSslSocket *>(socket())) {
sock->setProxy(proxy);
#if KIO_VERSION < QT_VERSION_CHECK(5, 65, 0)
} else if (KTcpSocket *sock = qobject_cast<KTcpSocket *>(socket())) {
sock->setProxy(proxy);
#endif
} else {
qCWarning(POP3_LOG) << "no socket, cannot set no proxy";
}
......
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