summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2016-08-07 13:49:18 +0200
committerDavid Faure <[email protected]>2016-08-07 13:49:37 +0200
commit068a074aa7c90b8e3fcd19bd3a4698378c14382a (patch)
treef35ad3b97e7fc6225add860486e3d80ce5020300
parentfae19399176e9fa0cccf8a25b5e598c036391103 (diff)
Emit error (in order to terminate job) when the socket emits an error.
-rw-r--r--src/kmanagesieve/sessionthread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kmanagesieve/sessionthread.cpp b/src/kmanagesieve/sessionthread.cpp
index 6e509bb..d6d6346 100644
--- a/src/kmanagesieve/sessionthread.cpp
+++ b/src/kmanagesieve/sessionthread.cpp
@@ -216,6 +216,7 @@ void SessionThread::slotSocketError()
Q_ASSERT(QThread::currentThread() == thread());
qCWarning(KMANAGERSIEVE_LOG) << Q_FUNC_INFO << m_socket->errorString();
+ Q_EMIT error(KIO::buildErrorString(KIO::ERR_COULD_NOT_CONNECT, m_socket->errorString()));
doDisconnectFromHost(false);
}