[SCM] ktp-auth-handler packaging branch, master, updated. debian/15.12.1-2-282-g080758e
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 23:58:20 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-auth-handler.git;a=commitdiff;h=b335e93
The following commit has been merged in the master branch:
commit b335e93837db910a70d075bfcaf916821f75e8a1
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Sat Oct 22 01:17:28 2011 +0200
Finish with error if authentication failed
---
sasl-auth-op.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sasl-auth-op.cpp b/sasl-auth-op.cpp
index b12fd0a..6fc6ae0 100644
--- a/sasl-auth-op.cpp
+++ b/sasl-auth-op.cpp
@@ -23,6 +23,7 @@
#include <TelepathyQt4/PendingVariantMap>
#include <KDebug>
+#include <KLocalizedString>
#include "password-prompt.h"
@@ -105,7 +106,8 @@ void SaslAuthOp::onSASLStatusChanged(uint status, const QString &reason,
promptUser(false);
} else {
m_channel->requestClose();
- setFinished();
+ QString errorMessage = details[QLatin1String("server-message")].toString();
+ setFinishedWithError(reason, errorMessage.isEmpty() ? i18n("Authentication error") : errorMessage);
}
}
}
--
ktp-auth-handler packaging
More information about the pkg-kde-commits
mailing list