author | ulf69 <ulf69> | 2004-07-19 20:04:49 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-19 20:04:49 (UTC) |
commit | 2389d07165786dc4d99cac043947b555fdd7d86e (patch) (unidiff) | |
tree | 1abe3227f3ee86a2159f72245465b65c748ce619 /kabc/converter/qtopia/qtopiaconverter.cpp | |
parent | d498ea750239bffa7ec811aa3e60befc6bae9608 (diff) | |
download | kdepimpi-2389d07165786dc4d99cac043947b555fdd7d86e.zip kdepimpi-2389d07165786dc4d99cac043947b555fdd7d86e.tar.gz kdepimpi-2389d07165786dc4d99cac043947b555fdd7d86e.tar.bz2 |
code cleanup
Diffstat (limited to 'kabc/converter/qtopia/qtopiaconverter.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kabc/converter/qtopia/qtopiaconverter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kabc/converter/qtopia/qtopiaconverter.cpp b/kabc/converter/qtopia/qtopiaconverter.cpp index 498e89e..ac513b6 100644 --- a/kabc/converter/qtopia/qtopiaconverter.cpp +++ b/kabc/converter/qtopia/qtopiaconverter.cpp | |||
@@ -230,13 +230,15 @@ bool QtopiaConverter::qtopiaToAddressee( const PimContact &contact, Addressee &a | |||
230 | 230 | ||
231 | QArray<int> catArray = contact.categories(); | 231 | QArray<int> catArray = contact.categories(); |
232 | QString cat; | 232 | QString cat; |
233 | 233 | ||
234 | for ( unsigned int i=0; i < catArray.size(); i++ ) { | 234 | for ( unsigned int i=0; i < catArray.size(); i++ ) { |
235 | cat = catDB->label("contact", catArray[i]); | 235 | cat = catDB->label("contact", catArray[i]); |
236 | if ( !cat.isEmpty() ) | 236 | if ( cat.isEmpty() ) |
237 | addr.insertCategory(QString::number(catArray[i])); | ||
238 | else | ||
237 | addr.insertCategory( cat ); | 239 | addr.insertCategory( cat ); |
238 | } | 240 | } |
239 | 241 | ||
240 | return true; | 242 | return true; |
241 | } | 243 | } |
242 | 244 | ||