author | zautrix <zautrix> | 2004-10-13 03:05:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-13 03:05:35 (UTC) |
commit | 8f852fddc2dc5b63511d6ad1c85a1e74141969ff (patch) (unidiff) | |
tree | 123c7e845e1520a4dcd50dd2361252cc6ab7a76a /kaddressbook | |
parent | e7833b80c28e38bfe6316ee5fce150635cdebe03 (diff) | |
download | kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.zip kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.tar.gz kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.tar.bz2 |
fixed one syncing problem
-rw-r--r-- | kaddressbook/kabcore.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 282560f..205dbc8 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2734,22 +2734,7 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) | |||
2734 | isXML = true; | 2734 | isXML = true; |
2735 | abLocal.preExternSync( mAddressBook ,mCurrentSyncDevice ); | 2735 | abLocal.preExternSync( mAddressBook ,mCurrentSyncDevice ); |
2736 | } else { | 2736 | } else { |
2737 | Addressee lse = mAddressBook->findByUid( "last-syncAddressee-"+mCurrentSyncDevice ); | 2737 | external = !manager->mIsKapiFile; |
2738 | if ( ! lse.isEmpty() ) { | ||
2739 | if ( lse.familyName().left(4) == "!E: " ) | ||
2740 | external = true; | ||
2741 | } else { | ||
2742 | bool found = false; | ||
2743 | AddressBook::Iterator it; | ||
2744 | for ( it = abLocal.begin(); it != abLocal.end(); ++it ) { | ||
2745 | if ( (*it).revision().date().year() > 2003 ) { | ||
2746 | found = true; | ||
2747 | break; | ||
2748 | } | ||
2749 | } | ||
2750 | external = ! found; | ||
2751 | } | ||
2752 | |||
2753 | if ( external ) { | 2738 | if ( external ) { |
2754 | qDebug("Setting vcf mode to external "); | 2739 | qDebug("Setting vcf mode to external "); |
2755 | mGlobalSyncMode = SYNC_MODE_EXTERNAL; | 2740 | mGlobalSyncMode = SYNC_MODE_EXTERNAL; |