From: Claudio Cambra Date: Mon, 24 Jul 2023 08:06:00 +0000 (+0800) Subject: Stop current sync when existing folder becomes big and we have enabled disabling... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~9^2~57^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2324a60c761c7e97d796cc5ce71088620338601f;p=nextcloud-desktop.git Stop current sync when existing folder becomes big and we have enabled disabling sync of folders that become big Signed-off-by: Claudio Cambra --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 5b5563d57..3c0e5fd6e 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1268,6 +1268,8 @@ void Folder::slotExistingFolderNowBig(const QString &folderPath) if (stopSyncing) { blacklist.append(trailSlashFolderPath); journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, blacklist); + slotTerminateSync(); + scheduleThisFolderSoon(); } else { whitelist.append(trailSlashFolderPath); journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncWhiteList, whitelist);