summaryrefslogtreecommitdiffabout
path: root/kabc/converter/qtopia/qtopiaconverter.cpp
Side-by-side diff
Diffstat (limited to 'kabc/converter/qtopia/qtopiaconverter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/converter/qtopia/qtopiaconverter.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/kabc/converter/qtopia/qtopiaconverter.cpp b/kabc/converter/qtopia/qtopiaconverter.cpp
index e3dd3e6..f451b8b 100644
--- a/kabc/converter/qtopia/qtopiaconverter.cpp
+++ b/kabc/converter/qtopia/qtopiaconverter.cpp
@@ -51,11 +51,8 @@ bool QtopiaConverter::init()
catDB = new Categories();
- if (catDB)
- {
- catDB->load( categoryFileName() );
- return true;
- }
- else
- {
+
+ if (!catDB)
return false;
- }
+
+ catDB->load( categoryFileName() );
+ return true;
}
@@ -211,3 +208,3 @@ bool QtopiaConverter::qtopiaToAddressee( const PimContact &contact, Addressee &a
//US
- qDebug("OpieConverter::opieToAddressee found:%s", dt.latin1());
+ qDebug("OpieConverter::qtopiaToAddressee found:%s", dt.latin1());
addr.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt);
@@ -232,3 +229,3 @@ bool QtopiaConverter::qtopiaToAddressee( const PimContact &contact, Addressee &a
//US QStringList groupList() const;
-
+
QArray<int> catArray = contact.categories();
@@ -241,3 +238,3 @@ bool QtopiaConverter::qtopiaToAddressee( const PimContact &contact, Addressee &a
}
-
+
return true;