File r904945.diff of Package kdepim4

Subject: kaddressbook: Fix LDIF import for files with windows linebreaks
From: wstephenson@suse.de
Bug: 
Patch-upstream: 904945
--- kaddressbook/xxport/ldif_xxport.cpp	(revision 904944)
+++ kaddressbook/xxport/ldif_xxport.cpp	(revision 904945)
@@ -71,7 +71,7 @@ KABC::Addressee::List LDIFXXPort::import
     return addrList;
 
   QFile file( fileName );
-  if ( !file.open( QIODevice::ReadOnly ) ) {
+  if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
     QString msg = i18n( "<qt>Unable to open <b>%1</b> for reading.</qt>", fileName );
     KMessageBox::error( parentWidget(), msg );
     return addrList;
Index: kaddressbook/xxport/ldif_xxport.cpp
===================================================================
openSUSE Build Service is sponsored by