SyncConfig::removeSyncSource(): did not remove sources inside peers (MB #9065)
It scanned "peers" inside the top .config/syncevolution directory instead of looking inside the current context. This showed up as failure in test-dbus.py testSourceRemovalGlobal.
This commit is contained in:
parent
790a17b883
commit
65b4803842
|
@ -1409,8 +1409,8 @@ void SyncConfig::removeSyncSource(const string &name)
|
|||
m_tree->remove(pathName);
|
||||
// ... and the peer-specific ones of *all* peers
|
||||
BOOST_FOREACH(const std::string peer,
|
||||
m_tree->getChildren("peers")) {
|
||||
m_tree->remove(string("peers/") + peer + "/sources/" + lower);
|
||||
m_tree->getChildren(m_contextPath + "/peers")) {
|
||||
m_tree->remove(m_contextPath + "/peers/" + peer + "/sources/" + lower);
|
||||
}
|
||||
} else {
|
||||
// remove only inside the selected peer
|
||||
|
|
Loading…
Reference in a new issue