From: <svn...@op...> - 2010-08-31 04:13:52
|
Author: cdfrey Date: Tue Aug 31 06:13:44 2010 New Revision: 6108 URL: http://www.opensync.org/changeset/6108 Log: When committing, only need to set uid for an ADDED entry Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Tue Aug 31 06:13:36 2010 (r6107) +++ plugins/google-calendar/src/gcalendar.c Tue Aug 31 06:13:44 2010 (r6108) @@ -746,6 +746,9 @@ msg = "Error setting added state"; goto error; } + + // tell opensync to store the new ID + osync_change_set_uid(change, gcal_event_get_id(event)); break; case OSYNC_CHANGE_TYPE_MODIFIED: @@ -815,8 +818,6 @@ goto error; } - // Inform the new ID - osync_change_set_uid(change, gcal_event_get_id(event)); gcal_event_delete(event); } |