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
KSmtp
Commits
f50bff44
Commit
f50bff44
authored
Aug 30, 2021
by
Laurent Montel
😁
Browse files
Use qOverload directly (scripted)
parent
51fce689
Pipeline
#77335
passed with stage
in 3 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/sessionthread.cpp
View file @
f50bff44
...
...
@@ -137,13 +137,10 @@ void SessionThread::run()
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
(),
QOverload
<
QAbstractSocket
::
SocketError
>::
of
(
&
QAbstractSocket
::
errorOccurred
),
this
,
[
this
](
QAbstractSocket
::
SocketError
err
)
{
qCWarning
(
KSMTP_LOG
)
<<
"SMTP Socket error:"
<<
err
<<
m_socket
->
errorString
();
Q_EMIT
m_parentSession
->
connectionError
(
m_socket
->
errorString
());
});
connect
(
m_socket
.
get
(),
qOverload
<
QAbstractSocket
::
SocketError
>
(
&
QAbstractSocket
::
errorOccurred
),
this
,
[
this
](
QAbstractSocket
::
SocketError
err
)
{
qCWarning
(
KSMTP_LOG
)
<<
"SMTP Socket error:"
<<
err
<<
m_socket
->
errorString
();
Q_EMIT
m_parentSession
->
connectionError
(
m_socket
->
errorString
());
});
connect
(
this
,
&
SessionThread
::
encryptionNegotiationResult
,
m_parentSession
->
d
,
&
SessionPrivate
::
encryptionNegotiationResult
);
connect
(
this
,
&
SessionThread
::
responseReceived
,
m_parentSession
->
d
,
&
SessionPrivate
::
responseReceived
);
...
...
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