[evolution-ews/gnome-3-26] Bug 792190 - Fails to update offline GAL



commit 2d99763776906e5937cd86ef2d799789a0a01635
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 4 14:26:56 2018 +0100

    Bug 792190 - Fails to update offline GAL

 src/server/e-ews-connection.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 2dd9da1..8d7f625 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2366,7 +2366,12 @@ e_ews_connection_update_credentials (EEwsConnection *cnc,
        g_return_if_fail (E_IS_EWS_CONNECTION (cnc));
 
        if (credentials) {
-               e_ews_connection_set_password (cnc, e_named_parameters_get (credentials, 
E_SOURCE_CREDENTIAL_PASSWORD));
+               const gchar *password;
+
+               /* Update password only if it's provided, otherwise keep the previously set, if any */
+               password = e_named_parameters_get (credentials, E_SOURCE_CREDENTIAL_PASSWORD);
+               if (password && *password)
+                       e_ews_connection_set_password (cnc, password);
 
                if (e_named_parameters_get (credentials, E_SOURCE_CREDENTIAL_USERNAME)) {
                        CamelNetworkSettings *network_settings;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]