[evolution-data-server] Bug #657345 - Remember password by default for book/calendar



commit a7834444bfb3abbee6d35435f41d1fa06e48a4ae
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 31 08:24:48 2011 +0200

    Bug #657345 - Remember password by default for book/calendar

 libedataserverui/e-client-utils.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libedataserverui/e-client-utils.c b/libedataserverui/e-client-utils.c
index 9c6db34..34f4d3d 100644
--- a/libedataserverui/e-client-utils.c
+++ b/libedataserverui/e-client-utils.c
@@ -737,6 +737,7 @@ e_client_utils_authenticate_handler (EClient *client, ECredentials *credentials,
 {
 	ESource *source;
 	gboolean is_book, is_cal, res, remember_password = FALSE;
+	const gchar *prop;
 
 	g_return_val_if_fail (client != NULL, FALSE);
 	g_return_val_if_fail (credentials != NULL, FALSE);
@@ -802,12 +803,13 @@ e_client_utils_authenticate_handler (EClient *client, ECredentials *credentials,
 		g_free (prompt);
 	}
 
-	remember_password = g_strcmp0 (e_source_get_property (source, "remember_password"), "true") == 0;
+	prop = e_source_get_property (source, "remember_password");
+	remember_password = !prop || g_strcmp0 (prop, "true") == 0;
 
 	res = e_credentials_authenticate_helper (credentials, gtk_window_parent, &remember_password);
 
 	if (res)
-		e_source_set_property (source, "remember_password", remember_password ? "true" : NULL);
+		e_source_set_property (source, "remember_password", remember_password ? "true" : "false");
 
 	e_credentials_clear_peek (credentials);
 



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