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. Conflicts: src/mirall/folder.cpp
This commit is contained in:
parent
f34621578e
commit
fb4728c7ee
2 changed files with 3 additions and 2 deletions
|
@ -433,6 +433,7 @@ void Folder::slotTerminateSync()
|
|||
_csyncError = true;
|
||||
qDebug() << "-> CSync Terminated!";
|
||||
slotCSyncFinished();
|
||||
setSyncEnabled(false);
|
||||
}
|
||||
|
||||
// This removes the csync File database if the sync folder definition is removed
|
||||
|
|
|
@ -391,8 +391,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