Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-05-24 12:50:57 +0300
committerHannah von Reth <vonreth@kde.org>2022-05-24 13:14:42 +0300
commit43df0da5841a0f8181f51426ce8b321cf6092cfb (patch)
treeef3e6b3a37ac41cd3acc414453de5766160fd8d3 /src/gui
parent6af1d4fdafb93adfe9c3df0faf80dd4e793a97a7 (diff)
Fix scheduling of newly added folders
Fixes: #9691
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/folder.cpp1
-rw-r--r--src/gui/folderman.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index cfabc4b17..849c58cc1 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -587,6 +587,7 @@ void Folder::startVfs()
_vfs->fileStatusChanged(stateDbFile + QStringLiteral("-wal"), SyncFileStatus::StatusExcluded);
_vfs->fileStatusChanged(stateDbFile + QStringLiteral("-shm"), SyncFileStatus::StatusExcluded);
_vfsIsReady = true;
+ slotScheduleThisFolder();
});
connect(_vfs.data(), &Vfs::error, this, [this](const QString &error) {
_syncResult.appendErrorString(error);
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index 3a92affe1..5fbb10fed 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -657,6 +657,7 @@ void FolderMan::setSyncEnabled(bool enabled)
// We have things in our queue that were waiting for the connection to come back on.
startScheduledSyncSoon();
}
+ qCInfo(lcFolderMan) << Q_FUNC_INFO << enabled;
_syncEnabled = enabled;
// force a redraw in case the network connect status changed
Q_EMIT folderSyncStateChange(nullptr);
@@ -743,6 +744,7 @@ void FolderMan::slotStartScheduledFolderSync()
registerFolderWithSocketApi(folder);
_currentSyncFolder = folder;
+ qCInfo(lcFolderMan) << "Start scheduled sync of" << folder->path();
folder->startSync();
}
}