[evolution-data-server] Bug #589984 - eds crash trying to create an event.



commit 4b3ed0ca83a3bf7d2bc8733592c16546ed61113d
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Jul 28 15:11:59 2009 +0530

    Bug #589984 - eds crash trying to create an event.

 servers/groupwise/e-gw-connection.c |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/servers/groupwise/e-gw-connection.c b/servers/groupwise/e-gw-connection.c
index 2ea370d..6f923b6 100644
--- a/servers/groupwise/e-gw-connection.c
+++ b/servers/groupwise/e-gw-connection.c
@@ -3749,22 +3749,12 @@ e_gw_connection_read_cal_ids (EGwConnection *cnc, const gchar *container, gint c
 		}
 
 		if (id && !g_str_equal (id, "0")) {
-			guint allday = 0;
-
 			calid->recur_key = id;
 
-			if (type == E_GW_ITEM_TYPE_APPOINTMENT) {
-				param_id = soup_soap_parameter_get_first_child_by_name (subparam, "allDayEvent");
-				if (param_id) {
-					allday = soup_soap_parameter_get_int_value (param_id);
-				}
-
-			}
-
-			if (allday)
+			/* startDate is returned for both all-day and ordinary events */
+			param_id = soup_soap_parameter_get_first_child_by_name (subparam, "startDate");
+			if (!param_id)
 				param_id = soup_soap_parameter_get_first_child_by_name (subparam, "startDay");
-			else
-				param_id = soup_soap_parameter_get_first_child_by_name (subparam, "startDate");
 
 			if (param_id) {
 				gchar *formatted_date;



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