From cba4eb3e05bee757b910f316ffab01d3849c0138 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 02 Dec 2005 10:03:46 +0000 Subject: more sync --- diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index bdc2762..ed3ac84 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -395,7 +395,7 @@ void AddressBook::export2File( QString fileName, QString resourceName ) if ( (*it).resource() ) { bool include = (*it).resource()->includeInSync(); if ( !resourceName.isEmpty() ) - include = (resourceName == (*it).resource()->name() ); + include = (resourceName == (*it).resource()->resourceName() ); if ( include ) { qDebug(QString ("Exporting resource %1 to file %2").arg( (*it).resource()->name() ).arg( fileName ) ); if ( !(*it).IDStr().isEmpty() ) { @@ -510,7 +510,7 @@ int AddressBook::importFromFile( QString fileName, bool replaceLabel, bool remo KRES::Manager *manager = d->mManager; for ( it = manager->activeBegin(); it != manager->activeEnd(); ++it ) { qDebug("SaveAB::checking resource..." ); - if ( (*it)->name() == resource ) { + if ( (*it)->resourceName() == resource ) { setRes = (*it); qDebug("Inserting imported contacs to resource %s", resource.latin1()); break; @@ -537,7 +537,7 @@ void AddressBook::setUntagged(bool setNonSyncTagged, QString resource) // = fals Iterator ait; if ( !resource.isEmpty() ) { for ( ait = begin(); ait != end(); ++ait ) { - if ( (*ait).resource() && (*ait).resource()->name() == resource ) { + if ( (*ait).resource() && (*ait).resource()->resourceName() == resource ) { (*ait).setTagged( false ); } else -- cgit v0.9.0.2