Diffstat (limited to 'kaddressbook/xxportselectdialog.cpp') (more/less context) (ignore whitespace changes)
-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() | |||
159 | for ( it = selection.begin(); it != selection.end(); ++it ) { | 159 | for ( it = selection.begin(); it != selection.end(); ++it ) { |
160 | KABC::Addressee addr = mCore->addressBook()->findByUid( *it ); | 160 | KABC::Addressee addr = mCore->addressBook()->findByUid( *it ); |
161 | if ( !addr.isEmpty() ) | 161 | if ( !addr.isEmpty() ) |
162 | list.append( addr ); | 162 | if ( addr.uid().left( 19 ) != QString("last-syncAddressee-") ) |
163 | list.append( addr ); | ||
163 | } | 164 | } |
164 | } else if ( mUseFilters->isChecked() ) { | 165 | } else if ( mUseFilters->isChecked() ) { |
165 | // find contacts that can pass selected filter | 166 | // find contacts that can pass selected filter |
@@ -171,7 +172,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
171 | KABC::AddressBook::Iterator it; | 172 | KABC::AddressBook::Iterator it; |
172 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) { | 173 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) { |
173 | if ( (*filterIt).filterAddressee( *it ) ) | 174 | if ( (*filterIt).filterAddressee( *it ) ) |
174 | list.append( *it ); | 175 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) |
176 | list.append( *it ); | ||
175 | } | 177 | } |
176 | } else if ( mUseCategories->isChecked() ) { | 178 | } else if ( mUseCategories->isChecked() ) { |
177 | QStringList categorieList = categories(); | 179 | QStringList categorieList = categories(); |
@@ -181,7 +183,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
181 | QStringList::Iterator tmpIt; | 183 | QStringList::Iterator tmpIt; |
182 | for ( tmpIt = tmp.begin(); tmpIt != tmp.end(); ++tmpIt ) | 184 | for ( tmpIt = tmp.begin(); tmpIt != tmp.end(); ++tmpIt ) |
183 | if ( categorieList.contains( *tmpIt ) ) { | 185 | if ( categorieList.contains( *tmpIt ) ) { |
184 | list.append( *it ); | 186 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) |
187 | list.append( *it ); | ||
185 | break; | 188 | break; |
186 | } | 189 | } |
187 | } | 190 | } |
@@ -189,7 +192,8 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
189 | // create a string list of all entries: | 192 | // create a string list of all entries: |
190 | KABC::AddressBook::Iterator it; | 193 | KABC::AddressBook::Iterator it; |
191 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) | 194 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) |
192 | list.append( *it ); | 195 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) |
196 | list.append( *it ); | ||
193 | } | 197 | } |
194 | 198 | ||
195 | if ( mUseSorting ) { | 199 | if ( mUseSorting ) { |