[evolution-patches] fix for the crash



the attached patch fixes a crash.

Index: e-cal-backend-groupwise-utils.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c,v
retrieving revision 1.66
diff -u -p -r1.66 e-cal-backend-groupwise-utils.c
--- e-cal-backend-groupwise-utils.c	19 Sep 2005 07:21:06 -0000	1.66
+++ e-cal-backend-groupwise-utils.c	4 Oct 2005 08:32:20 -0000
@@ -1024,8 +1024,14 @@ e_gw_item_to_cal_component (EGwItem *ite
 			 * for getting cutype and the status */
 			attendee->cutype = ICAL_CUTYPE_INDIVIDUAL;
 			 
-			if (recipient->status == E_GW_ITEM_STAT_ACCEPTED)
-				attendee->status = ICAL_PARTSTAT_ACCEPTED;
+			if (recipient->status == E_GW_ITEM_STAT_ACCEPTED) {
+				char *accept_level = e_gw_item_get_accept_level (item);
+				
+				if (accept_level && !strcmp (accept_level, "Tentative"))
+					attendee->status = ICAL_PARTSTAT_TENTATIVE;
+				else
+					attendee->status = ICAL_PARTSTAT_ACCEPTED;
+			}
 			else if (recipient->status == E_GW_ITEM_STAT_DECLINED)
 				attendee->status = ICAL_PARTSTAT_DECLINED;
 			else


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