author | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
commit | 7aa43257ffb63e772342f24c1f7945e285171ee6 (patch) (side-by-side diff) | |
tree | 7d68896cbbd5ae699bce7905e17824939022a488 /kaddressbook | |
parent | f0554322b2f27e1fa60dc79a5d76ef0741bf3423 (diff) | |
download | kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.zip kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.gz kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.bz2 |
export kapi fix
-rw-r--r-- | kaddressbook/xxportselectdialog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp index e134f97..278cab0 100644 --- a/kaddressbook/xxportselectdialog.cpp +++ b/kaddressbook/xxportselectdialog.cpp @@ -159,7 +159,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() for ( it = selection.begin(); it != selection.end(); ++it ) { KABC::Addressee addr = mCore->addressBook()->findByUid( *it ); if ( !addr.isEmpty() ) - list.append( addr ); + if ( addr.uid().left( 19 ) != QString("last-syncAddressee-") ) + list.append( addr ); } } else if ( mUseFilters->isChecked() ) { // find contacts that can pass selected filter @@ -171,7 +172,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() KABC::AddressBook::Iterator it; for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) { if ( (*filterIt).filterAddressee( *it ) ) - list.append( *it ); + if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) + list.append( *it ); } } else if ( mUseCategories->isChecked() ) { QStringList categorieList = categories(); @@ -181,7 +183,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() QStringList::Iterator tmpIt; for ( tmpIt = tmp.begin(); tmpIt != tmp.end(); ++tmpIt ) if ( categorieList.contains( *tmpIt ) ) { - list.append( *it ); + if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) + list.append( *it ); break; } } @@ -189,7 +192,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() // create a string list of all entries: KABC::AddressBook::Iterator it; for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) - list.append( *it ); + if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) + list.append( *it ); } if ( mUseSorting ) { |