From 787181d34f0d195ad72c9cf6aedbc317b6dd713e Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 19 Sep 2004 09:00:55 +0000 Subject: more AB sync --- (limited to 'kabc/stdaddressbook.cpp') diff --git a/kabc/stdaddressbook.cpp b/kabc/stdaddressbook.cpp index ec47a4e..181a09e 100644 --- a/kabc/stdaddressbook.cpp +++ b/kabc/stdaddressbook.cpp @@ -165,7 +165,12 @@ bool StdAddressBook::save() AddressBook *ab = self(); ab->deleteRemovedAddressees(); - + Iterator ait; + for ( ait = ab->begin(); ait != ab->end(); ++ait ) { + if ( !(*ait).IDStr().isEmpty() ) { + (*ait).insertCustom( "KADDRESSBOOK", "X-ExternalID", (*ait).IDStr() ); + } + } KRES::Manager::ActiveIterator it; KRES::Manager *manager = ab->resourceManager(); for ( it = manager->activeBegin(); it != manager->activeEnd(); ++it ) { -- cgit v0.9.0.2