set the server-generated UID on the newly-created component.
authorRodrigo Moya <rodrigo@ximian.com>
Thu, 25 Mar 2004 16:01:46 +0000 (16:01 +0000)
committerRodrigo Moya <rodrigo@src.gnome.org>
Thu, 25 Mar 2004 16:01:46 +0000 (16:01 +0000)
2004-03-25  Rodrigo Moya <rodrigo@ximian.com>

* backends/groupwise/e-cal-backend-groupwise.c
(e_cal_backend_groupwise_create_object): set the server-generated UID
on the newly-created component.

calendar/ChangeLog
calendar/backends/groupwise/e-cal-backend-groupwise.c

index a718631..79a5954 100644 (file)
@@ -1,5 +1,11 @@
 2004-03-25  Rodrigo Moya <rodrigo@ximian.com>
 
+       * backends/groupwise/e-cal-backend-groupwise.c
+       (e_cal_backend_groupwise_create_object): set the server-generated UID
+       on the newly-created component.
+
+2004-03-25  Rodrigo Moya <rodrigo@ximian.com>
+
        * libedata-cal/e-cal-backend-sync.[ch]
        (e_cal_backend_sync_create_object): made the 'calobj' argument to
        be inout, so that the caller gets the modified component, not the
index 3624a6d..7d71f3d 100644 (file)
@@ -901,6 +901,10 @@ e_cal_backend_groupwise_create_object (ECalBackendSync *backend, EDataCal *cal,
                        g_object_unref (comp);
                        return GNOME_Evolution_Calendar_OtherError;
                }
+
+               if (*uid)
+                       e_cal_component_set_uid (comp, *uid);
+
                /* if successful, update the cache */
        case CAL_MODE_LOCAL :
                /* in offline mode, we just update the cache */