[evolution-patches] patch for GW calendar backend
- From: Rodrigo Moya <rodrigo ximian com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] patch for GW calendar backend
- Date: Thu, 18 Mar 2004 19:37:25 +0100
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.208
diff -u -p -r1.208 ChangeLog
--- ChangeLog 18 Mar 2004 18:07:55 -0000 1.208
+++ ChangeLog 18 Mar 2004 18:35:44 -0000
@@ -1,3 +1,10 @@
+2004-03-18 Rodrigo Moya <rodrigo ximian com>
+
+ * backends/groupwise/e-cal-backend-groupwise.c
+ (e_cal_backend_groupwise_create_object,
+ e_cal_backend_groupwise_modify_object): don't update the cache when we
+ get an error from the server.
+
2004-03-17 Rodrigo Moya <rodrigo ximian com>
Fixes #55719
Index: backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.51
diff -u -p -r1.51 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c 18 Mar 2004 18:07:56 -0000 1.51
+++ backends/groupwise/e-cal-backend-groupwise.c 18 Mar 2004 18:35:45 -0000
@@ -895,8 +895,10 @@ e_cal_backend_groupwise_create_object (E
case CAL_MODE_REMOTE :
/* when online, send the item to the server */
status = e_gw_connection_send_appointment (priv->cnc, priv->container_id, comp);
- if (status != E_GW_CONNECTION_STATUS_OK)
- break;
+ if (status != E_GW_CONNECTION_STATUS_OK) {
+ g_object_unref (comp);
+ return GNOME_Evolution_Calendar_OtherError;
+ }
/* if successful, update the cache */
case CAL_MODE_LOCAL :
/* in offline mode, we just update the cache */
@@ -941,8 +943,10 @@ e_cal_backend_groupwise_modify_object (E
case CAL_MODE_REMOTE :
/* when online, send the item to the server */
status = e_gw_connection_send_appointment (priv->cnc, priv->container_id, comp);
- if (status != E_GW_CONNECTION_STATUS_OK)
- break;
+ if (status != E_GW_CONNECTION_STATUS_OK) {
+ g_object_unref (comp);
+ return GNOME_Evolution_Calendar_OtherError;
+ }
/* if successful, update the cache */
case CAL_MODE_LOCAL :
/* in offline mode, we just update the cache */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]