All pastes #811440 Raw Edit

Something

public text v1 · immutable
·published 2007-12-10 22:29 UTC
rendered paste body
Index: src/palm_contact.c
===================================================================
--- src/palm_contact.c  (revision 2921)
+++ src/palm_contact.c  (working copy)
@@ -40,6 +40,7 @@
                goto error_free_change;
 
        osync_change_set_data(change, data);
+       osync_change_set_changetype(change, OSYNC_CHANGE_TYPE_ADDED);
 
        char *uid = g_strdup_printf("uid-AddressDB-%ld", entry->id);
        osync_change_set_uid(change, uid);
@@ -117,7 +118,6 @@
                        if (osync_change_get_data(change) == NULL)
                                continue;
 
-                       osync_change_set_changetype(change, OSYNC_CHANGE_TYPE_ADDED);
                        osync_context_report_change(ctx, change);
                }
        } else {