Changeset 1767

Show
Ignore:
Timestamp:
02/19/07 19:22:42 (22 months ago)
Author:
dgollub
Message:

Fixed detection of deleted entries.
osync_hashtable_report() is the key ;)
Every entry got reported to the hashtable and stored in a
glib hashtable... everything else got dropped from hashtable
and changetype deleted.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/kdepim/src/kaddrbook.cpp

    r1766 r1767  
    174174                osync_change_set_hash(change, hash.data()); 
    175175 
     176                // Report entry ... otherwise it gets deleted! 
     177                osync_hashtable_report(hashtable, uid); 
     178 
    176179                OSyncChangeType changetype = osync_hashtable_get_changetype(hashtable, uid.local8Bit(), hash.data()); 
    177180                osync_change_set_changetype(change, changetype); 
     
    182185        } 
    183186 
    184         // FIXME: the osync_hashtable_get_deleted reports _EVERYTHING_ 
    185         // ... so really everything got deleted... i wonder how this worked for the file-sync plugin. 
    186         /* 
    187187        int i; 
    188188        char **uids = osync_hashtable_get_deleted(hashtable); 
     
    221221        } 
    222222        g_free(uids); 
    223         */ 
    224223 
    225224        osync_trace(TRACE_EXIT, "%s", __func__);