summaryrefslogtreecommitdiffabout
path: root/kde2file/abdump/main.cpp
Side-by-side diff
Diffstat (limited to 'kde2file/abdump/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kde2file/abdump/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kde2file/abdump/main.cpp b/kde2file/abdump/main.cpp
index d452ee9..1ee64f5 100644
--- a/kde2file/abdump/main.cpp
+++ b/kde2file/abdump/main.cpp
@@ -131,16 +131,17 @@ int main( int argc, char *argv[] )
data = t.read();
file.close();
KABC::VCardConverter converter;
list = converter.parseVCards( data );
qDebug("kdeABdump::file has %d entries", list.count());
KABC::Addressee::List::Iterator it;
for ( it = list.begin();it != list.end();++it) {
+ (*it).setChanged( true );
bool changed = ((*it).custom( "KADDRESSBOOK", "X-ExternalID" ) == "changed");
(*it).removeCustom( "KADDRESSBOOK", "X-ExternalID" );
//qDebug("ext %s ", (*it).custom( "KADDRESSBOOK", "X-ExternalID" ).latin1());
if ( changed ) {
//qDebug("changed Addressee found! ");
KABC::Addressee std = standardAddressBook->findByUid( (*it).uid() );
if ( ! std.isEmpty() )
(*it).setResource(std.resource());
@@ -181,13 +182,14 @@ int main( int argc, char *argv[] )
qDebug("************************************* ");
qDebug("*************kdeABdump*************** ");
qDebug("************************************* ");
qDebug("Addressbook entries\nchanged %d\ndeleted %d\nadded %d\nfrom file %s", changedC,deleted, added, fileName.latin1());
} else
qDebug("error open file ");
}
- KABC::StdAddressBook::close();
-
+ delete standardAddressBook;
+ //KABC::StdAddressBook::close();
+ //StdAddressBook::mSelf = 0;
qDebug("ente ");
return 0;
}