[Pkg-owncloud-commits] [owncloud-client] 01/26: Fix pausing one of the folder pauses all foder after it while restarting.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Mon Dec 9 00:01:56 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit f5f56e45c020fbb6adac58b2707be5090dd926e3
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Fri Nov 29 10:57:34 2013 +0100
Fix pausing one of the folder pauses all foder after it while restarting.
---
src/mirall/folderman.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/mirall/folderman.cpp b/src/mirall/folderman.cpp
index 9f7e838..9b9c013 100644
--- a/src/mirall/folderman.cpp
+++ b/src/mirall/folderman.cpp
@@ -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));
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list