author | zautrix <zautrix> | 2004-10-27 20:17:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-27 20:17:45 (UTC) |
commit | 3d6ae51e66bafaa4b51ed43d2e72a42802669212 (patch) (unidiff) | |
tree | 86528ba48c05dcb8f575785c63f591e840a86d95 | |
parent | bb82cac85cc196b3f60921ab27e84204036b54b8 (diff) | |
download | kdepimpi-3d6ae51e66bafaa4b51ed43d2e72a42802669212.zip kdepimpi-3d6ae51e66bafaa4b51ed43d2e72a42802669212.tar.gz kdepimpi-3d6ae51e66bafaa4b51ed43d2e72a42802669212.tar.bz2 |
sync fixes
-rw-r--r-- | kabc/addressbook.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 5774c36..6194d6d 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp | |||
@@ -872,17 +872,17 @@ void AddressBook::removeSyncAddressees( bool removeDeleted ) | |||
872 | //qDebug("removing %s ",(*it).uid().latin1() ); | 872 | //qDebug("removing %s ",(*it).uid().latin1() ); |
873 | ++it; | 873 | ++it; |
874 | removeAddressee( it2 ); | 874 | removeAddressee( it2 ); |
875 | } else { | 875 | } else { |
876 | //qDebug("skipping %s ",(*it).uid().latin1() ); | 876 | //qDebug("skipping %s ",(*it).uid().latin1() ); |
877 | if ( removeDeleted ) { | 877 | if ( removeDeleted ) { |
878 | // we have no postprocessing in the resource, we have to do it here | 878 | // we have no postprocessing in the resource, we have to do it here |
879 | // we have to compute csum for all, because it could be the first sync | 879 | // we have to compute csum for all, because it could be the first sync |
880 | (*it).setTempSyncStat( SYNC_TEMPSTATE_NEW_CSUM ); | 880 | (*it).setTempSyncStat( SYNC_TEMPSTATE_NEW_ID ); |
881 | 881 | ||
882 | 882 | ||
883 | } | 883 | } |
884 | ++it; | 884 | ++it; |
885 | } | 885 | } |
886 | } | 886 | } |
887 | deleteRemovedAddressees(); | 887 | deleteRemovedAddressees(); |
888 | } | 888 | } |
@@ -937,17 +937,17 @@ void AddressBook::postExternSync( AddressBook* aBook , const QString& csd, bool | |||
937 | qDebug("postExternSync:ERROR addressee is empty: %s ", (*it).uid().latin1()); | 937 | qDebug("postExternSync:ERROR addressee is empty: %s ", (*it).uid().latin1()); |
938 | } else { | 938 | } else { |
939 | (*it).setIDStr(":"); | 939 | (*it).setIDStr(":"); |
940 | (*it).computeCsum( csd ); | 940 | (*it).computeCsum( csd ); |
941 | if ( setID ) { | 941 | if ( setID ) { |
942 | if ( (*it).tempSyncStat() == SYNC_TEMPSTATE_NEW_ID ) | 942 | if ( (*it).tempSyncStat() == SYNC_TEMPSTATE_NEW_ID ) |
943 | ad.setID( csd, (*it).externalUID() ); | 943 | ad.setID( csd, (*it).externalUID() ); |
944 | } else | 944 | } else |
945 | ad.setID( csd, "_" ); | 945 | ad.setID( csd, (*it).uid() ); |
946 | ad.setCsum( csd, (*it).getCsum( csd ) ); | 946 | ad.setCsum( csd, (*it).getCsum( csd ) ); |
947 | aBook->insertAddressee( ad ); | 947 | aBook->insertAddressee( ad ); |
948 | } | 948 | } |
949 | } | 949 | } |
950 | } | 950 | } |
951 | } | 951 | } |
952 | 952 | ||
953 | bool AddressBook::containsExternalUid( const QString& uid ) | 953 | bool AddressBook::containsExternalUid( const QString& uid ) |