Diffstat (limited to 'kaddressbook/xxport/opie/opie_xxport.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/xxport/opie/opie_xxport.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/kaddressbook/xxport/opie/opie_xxport.cpp b/kaddressbook/xxport/opie/opie_xxport.cpp index d1def18..8ee0725 100644 --- a/kaddressbook/xxport/opie/opie_xxport.cpp +++ b/kaddressbook/xxport/opie/opie_xxport.cpp @@ -109,2 +109,14 @@ bool OpieXXPort::exportContacts( const KABC::AddresseeList &list, const QString + KABC::OpieConverter mConverter; + + bool res = mConverter.init(); + if (!res) + { + QString text( i18n( "Unable to initialize opie converter.<br>Most likely a problem with the category file." ) ); + qDebug(text); + KMessageBox::error( parentWidget(), text ); + delete access; + return false; + } + //Now check if the file has already entries, and ask the user if he wants to delete them first. @@ -120,4 +132,2 @@ bool OpieXXPort::exportContacts( const KABC::AddresseeList &list, const QString - KABC::OpieConverter mConverter; - bool res; |