[evolution] Bug #662589 - 'Retrieve List' for new Google calendar does not use proxy



commit bcf8dbb96f31e1b7fcca3a179f64885ca04ff565
Author: Milan Crha <mcrha redhat com>
Date:   Wed Nov 2 09:08:45 2011 +0100

    Bug #662589 - 'Retrieve List' for new Google calendar does not use proxy

 plugins/google-account-setup/google-source.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/google-account-setup/google-source.c b/plugins/google-account-setup/google-source.c
index a9785ad..405d521 100644
--- a/plugins/google-account-setup/google-source.c
+++ b/plugins/google-account-setup/google-source.c
@@ -467,6 +467,7 @@ retrieve_list_clicked (GtkButton *button,
 
 	authorizer = gdata_client_login_authorizer_new ("evolution-client-0.1.0", GDATA_TYPE_CALENDAR_SERVICE);
 	service = gdata_calendar_service_new (GDATA_AUTHORIZER (authorizer));
+	update_proxy_settings (GDATA_SERVICE (service), URL_GET_SUBSCRIBED_CALENDARS);
 	if (!gdata_client_login_authorizer_authenticate (authorizer, user, password, NULL, &error)) {
 		/* Error! */
 		claim_error (parent, error->message);
@@ -481,7 +482,6 @@ retrieve_list_clicked (GtkButton *button,
 	memset (password, 0, strlen (password));
 	g_free (password);
 
-	update_proxy_settings (GDATA_SERVICE (service), URL_GET_SUBSCRIBED_CALENDARS);
 	feed = gdata_calendar_service_query_all_calendars (service, NULL, NULL, NULL, NULL, &error);
 
 	if (feed) {



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