+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
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 */
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 */