diff options
author | Christian Kamm <mail@ckamm.de> | 2019-02-13 16:18:54 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2019-02-14 12:57:09 +0300 |
commit | a627f373b1254c081535fc7ecbcdeb7f6ea3708d (patch) | |
tree | 24e9e8e414676f6649e146f7cb1d7cdfc889be06 /src/gui/folderstatusmodel.cpp | |
parent | cf4ffd8c7e1d922848ad1e75d1b568e0e714a024 (diff) |
Ensure local discovery on selective sync changesloai_docs
As far as I'm aware local discovery can be skipped on folders that are
selective-sync blacklisted, so a local discovery is required when an
entry is removed from the blacklist.
Also rename
avoidReadFromDbOnNextSync() -> schedulePathForRemoteDiscovery()
since the old name might also imply it's not read from db in the local
discovery - which is not the case. Use Folder::
schedulePathForLocalDiscovery() for that.
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r-- | src/gui/folderstatusmodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 6c56d660d..bc69d2c03 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -851,7 +851,8 @@ void FolderStatusModel::slotApplySelectiveSync() //The part that changed should not be read from the DB on next sync because there might be new folders // (the ones that are no longer in the blacklist) foreach (const auto &it, changes) { - folder->journalDb()->avoidReadFromDbOnNextSync(it); + folder->journalDb()->schedulePathForRemoteDiscovery(it); + folder->schedulePathForLocalDiscovery(it); } // Also make sure we see the local file that had been ignored before folder->slotNextSyncFullLocalDiscovery(); @@ -1164,7 +1165,8 @@ void FolderStatusModel::slotSyncAllPendingBigFolders() // The part that changed should not be read from the DB on next sync because there might be new folders // (the ones that are no longer in the blacklist) foreach (const auto &it, undecidedList) { - folder->journalDb()->avoidReadFromDbOnNextSync(it); + folder->journalDb()->schedulePathForRemoteDiscovery(it); + folder->schedulePathForLocalDiscovery(it); } // Also make sure we see the local file that had been ignored before folder->slotNextSyncFullLocalDiscovery(); |