From e7a728eb24895c1269b4eeb011a5a30fde02251f Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Sat, 17 Jan 2015 10:41:00 +0000 Subject: [PATCH] tlscancelled Gbp-Pq: Name tlscancelled.patch --- resources/imap/sessionpool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/imap/sessionpool.cpp b/resources/imap/sessionpool.cpp index c94069b1..8cf1b3f2 100644 --- a/resources/imap/sessionpool.cpp +++ b/resources/imap/sessionpool.cpp @@ -377,6 +377,11 @@ void SessionPool::onLoginDone( KJob *job ) i18n( "Could not connect to the IMAP-server.\n%1", job->errorString() ) ); } + } else if ( job->error() == KIMAP::LoginJob::ERR_SSL_FAILED ) { + cancelSessionCreation( login->session(), + EncryptionError, + i18n( "Could not connect to the IMAP-server %1.\n%2", + m_account->server(), job->errorString() ) ); } else { // Connection worked, but login failed -> ask for a different password or ssl settings. m_pendingInitialSession = login->session(); -- 2.30.2