[evolution-patches] Patch for not loading Exchage calendars



Folders were not getting populated and exchange_account_get_folder()
was failing.
Please review.

Thanks,
Sushma.
Index: calendar/e-cal-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/calendar/e-cal-backend-exchange.c,v
retrieving revision 1.52
diff -u -p -r1.52 e-cal-backend-exchange.c
--- calendar/e-cal-backend-exchange.c	6 Jan 2006 04:59:48 -0000	1.52
+++ calendar/e-cal-backend-exchange.c	18 Jan 2006 09:35:13 -0000
@@ -332,15 +332,14 @@ open_calendar (ECalBackendSync *backend,
 		
 	/* Make sure we have an open connection */
 	/* This steals the ExchangeAccount from ExchangeComponent */
-	act = exchange_component_get_account_for_uri (global_exchange_component, NULL);
-	if (!exchange_account_get_context (act)) {
-		if (!exchange_account_connect (act, password, &acresult)) {
+	cbex->account = exchange_component_get_account_for_uri (global_exchange_component, uristr);
+	if (!exchange_account_get_context (cbex->account)) {
+		if (!exchange_account_connect (cbex->account, password, &acresult)) {
 			g_mutex_unlock (cbex->priv->open_lock);
 			return GNOME_Evolution_Calendar_AuthenticationFailed;
 		}
 	}
 
-	cbex->account = exchange_component_get_account_for_uri (global_exchange_component, uristr);
 	if (!cbex->account) {
 		g_mutex_unlock (cbex->priv->open_lock);
 		return GNOME_Evolution_Calendar_PermissionDenied;


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