avoid including invalid information about inactive sources in DevInf by clearing it

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@464 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2007-12-01 21:04:41 +00:00
parent 84c7168d9c
commit 3b2ad15743

View file

@ -727,6 +727,11 @@ void EvolutionSyncClient::initSources(SourceList &sourceList, EvolutionClientCon
// also open it; failing now is still safe
syncSource->open();
} else {
// set empty type to prevent inclusion in DevInfo with invalid infos
sc.setType("");
sc.setVersion("");
sc.setSupportedTypes("");
}
}