Handle sync enable flag correctly in folder scheduling.

This fixes bug #1083.
This commit is contained in:
Klaas Freitag 2013-10-09 14:19:34 +02:00
parent 53ac5427a8
commit 3c95d342ee
2 changed files with 3 additions and 3 deletions

View file

@ -434,7 +434,7 @@ void Folder::slotTerminateSync(bool block)
delete _thread;
slotCSyncFinished();
}
setSyncEnabled(false);
}
// This removes the csync File database if the sync folder definition is removed

View file

@ -390,8 +390,8 @@ void FolderMan::slotScheduleFolderSync()
if( _folderMap.contains( alias ) ) {
ownCloudInfo::instance()->getQuotaRequest("/");
Folder *f = _folderMap[alias];
_currentSyncFolder = alias;
if (f->syncEnabled()) {
if( f->syncEnabled() ) {
_currentSyncFolder = alias;
f->startSync( QStringList() );
}
}