summaryrefslogtreecommitdiffabout
path: root/kabc
Side-by-side diff
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressbook.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index d03dea3..16e1653 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -452,2 +452,5 @@ void AddressBook::insertAddressee( const Addressee &a, bool setRev )
if ( a.uid() == (*it).uid() ) {
+ if ( setRev && (*it).uid().left( 19 ) == QString("last-syncAddressee-") ) {
+ return;
+ }
bool changed = false;
@@ -463,2 +466,3 @@ void AddressBook::insertAddressee( const Addressee &a, bool setRev )
if ( setRev ) {
+
// get rid of micro seconds
@@ -527,3 +531,3 @@ Addressee::List AddressBook::getExternLastSyncAddressees()
for ( it = begin(); it != end(); ++it ) {
- if ( (*it).uid().left( 20 ) == "last-syncAddressee-" ) {
+ if ( (*it).uid().left( 19 ) == "last-syncAddressee-" ) {
if ( (*it).familyName().left(3) == "E: " )
@@ -557,3 +561,4 @@ Addressee::List AddressBook::allAddressees()
{
- return d->mAddressees;
+ return d->mAddressees;
+
}