Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
d192cb76
Commit
d192cb76
authored
May 16, 2021
by
Laurent Montel
😁
Browse files
Make compile with last kf5
parent
c1e93044
Pipeline
#62155
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kioslave/pop3/pop3.cpp
View file @
d192cb76
...
...
@@ -24,6 +24,7 @@ extern "C" {
#include <QSslSocket>
#include "kio_version.h"
#include <KTcpSocket>
#include <kio/slaveinterface.h>
...
...
@@ -607,7 +608,11 @@ bool POP3Protocol::pop3_open()
// use QSslSocket internally
QNetworkProxy
proxy
;
proxy
.
setType
(
QNetworkProxy
::
NoProxy
);
#if KIO_VERSION < QT_VERSION_CHECK(5, 83, 0)
if
(
auto
sock
=
qobject_cast
<
QSslSocket
*>
(
socket
()))
{
#else
if
(
auto
sock
=
qobject_cast
<
QSslSocket
*>
(
tcpSocket
()))
{
#endif
sock
->
setProxy
(
proxy
);
}
else
{
qCWarning
(
POP3_LOG
)
<<
"no socket, cannot set no proxy"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment