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
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-24 11:50:29 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-27 09:44:55 +0300
commitcf06a96255d1a82575bf1931a12127d3e88d04c1 (patch)
tree96909a5456bb520db347e8593d744e97429ef128 /src/gui/folderstatusmodel.cpp
parentde7e0093ec07117d86a1d5f3b95df763a4c770db (diff)
Cleanup and some assrts to ensure assumptions
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 0d2d13cb2..50ffe327d 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -841,7 +841,7 @@ void FolderStatusModel::slotApplySelectiveSync()
// do the sync if there were changes
const auto changes = (oldBlackListSet - blackListSet) + (blackListSet - oldBlackListSet);
if (!changes.isEmpty()) {
- if (folder->isBusy()) {
+ if (folder->isSyncRunning()) {
folder->slotTerminateSync();
}
//The part that changed should not be read from the DB on next sync because there might be new folders
@@ -1154,7 +1154,7 @@ void FolderStatusModel::slotSyncAllPendingBigFolders()
folder->journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncUndecidedList, QStringList());
// Trigger a sync
- if (folder->isBusy()) {
+ if (folder->isSyncRunning()) {
folder->slotTerminateSync();
}
// The part that changed should not be read from the DB on next sync because there might be new folders