[evolution-patches] Exchange connector calendar minor patch



(Resending this patch again as i dont see it yet on the patches list.)
Hi,

We were returning a wrong status when we start evolution in calendar and exchange is not authenticated yet.

Please review.

Thanks
-- Sarfraaz
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.297
diff -u -p -u -r1.297 ChangeLog
--- ChangeLog	14 Mar 2005 09:23:37 -0000	1.297
+++ ChangeLog	14 Mar 2005 09:29:05 -0000
@@ -1,3 +1,9 @@
+2005-03-14  Sarfraaz Ahmed <asarfraaz novell com>
+
+	* calendar/e-cal-backend-exchange.c (open_calendar): Return proper
+	error message when authentication fails. This happens when we start
+	evolution in calendar view without remembering the password.
+
 2005-03-11  Sarfraaz Ahmed <asarfraaz novell com>
 
         * calendar/e-cal-backend-exchange-calendar.c (add_ical) : Make sure we
Index: calendar/e-cal-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/calendar/e-cal-backend-exchange.c,v
retrieving revision 1.31
diff -u -p -u -r1.31 e-cal-backend-exchange.c
--- calendar/e-cal-backend-exchange.c	14 Mar 2005 09:23:37 -0000	1.31
+++ calendar/e-cal-backend-exchange.c	14 Mar 2005 09:29:06 -0000
@@ -322,7 +322,7 @@ open_calendar (ECalBackendSync *backend,
 	/* Make sure we have an open connection */
 	cbex->account = exchange_component_get_account_for_uri (global_exchange_component, uristr);
 	if (!cbex->account)
-		return GNOME_Evolution_Calendar_RepositoryOffline;
+		return GNOME_Evolution_Calendar_PermissionDenied;
 	if (!exchange_account_get_context (cbex->account))
 		return GNOME_Evolution_Calendar_RepositoryOffline;
 


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