mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Handle sync enable flag correctly in folder scheduling.
This fixes bug #1083.
This commit is contained in:
parent
53ac5427a8
commit
3c95d342ee
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue