Fix pausing one of the folder pauses all foder after it while restarting.

This commit is contained in:
Olivier Goffart 2013-11-29 10:57:34 +01:00
parent 951ac79a68
commit f5f56e45c0

View file

@ -368,10 +368,7 @@ void FolderMan::setSyncEnabled( bool enabled )
_syncEnabled = enabled;
foreach( Folder *f, _folderMap.values() ) {
if (_disabledFolders.contains(f)) {
enabled = false;
}
f->setSyncEnabled(enabled);
f->setSyncEnabled(enabled && !_disabledFolders.contains(f));
}
}