File 0001-Always-add-domain-delimiter-if-Domain-checkbox-is-se.patch of Package kdepim-runtime

From 0a89c7edf973091804ccf609e9c8f68f8cee9aaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Wed, 3 Jan 2018 17:15:27 +0100
Subject: [PATCH] Always add domain delimiter if "Domain" checkbox is selected
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ConfigDialog::fullUsername() always adds the domain delimiter, even if
the actual domain name is empty. Not doing so results in failing
authentication for some(?) servers.

Signed-off-by: Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
---
 resources/ews/ewsresource.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/ews/ewsresource.cpp b/resources/ews/ewsresource.cpp
index c67228a..a2c714b 100644
--- a/resources/ews/ewsresource.cpp
+++ b/resources/ews/ewsresource.cpp
@@ -451,7 +451,7 @@ void EwsResource::passwordRequestFinished(const QString &password)
         setOnline(false);
         Q_EMIT status(NotConfigured, i18nc("@info:status", "No password configured."));
     } else {
-        if (mSettings->domain().isEmpty()) {
+        if (!mSettings->hasDomain()) {
             mEwsClient.setCredentials(mSettings->username(), mPassword);
         } else {
             mEwsClient.setCredentials(mSettings->domain() + QLatin1Char('\\') + mSettings->username(), mPassword);
-- 
2.15.1

openSUSE Build Service is sponsored by