added comment about setting sync mode

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@512 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2008-03-09 17:11:44 +00:00
parent 08cf9a33f3
commit 873dc81719
1 changed files with 3 additions and 0 deletions

View File

@ -744,6 +744,9 @@ void EvolutionSyncClient::initSources(SourceList &sourceList)
EvolutionSyncSourceParams params(name,
getSyncSourceNodes(name),
string("sync4jevolution:") + getSyncURL() + "/" + name);
// the sync mode has to be set before instantiating the source
// because the client library reads the preferredSyncMode at that time:
// have to take a shortcut and set the property via its name
if (overrideMode) {
params.m_nodes.m_configNode->addFilter("sync", "two-way");
}