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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>2021-11-18 17:47:04 +0300
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>2021-11-19 16:19:04 +0300
commitf1d834df8e7118585d1e0306eb274c51b62d26e9 (patch)
treed3467095cf29c5a544713988293e1af6cb98fbd7 /src/gui/folder.cpp
parent502ffc62ef877cf5d9d1e82c558704d00d5661e7 (diff)
properly query sync journal DB to know when to run fix for VFS
the new method added to query the db is not working and so the fix for vfs is executed at each sync run the new method for bool was not really needed so let's just remove it (and that will make the usage of SqlQuery be correct Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r--src/gui/folder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index 39e4d37a9..33a1634d9 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -879,7 +879,7 @@ void Folder::correctPlaceholderFiles()
return;
}
static const auto placeholdersCorrectedKey = QStringLiteral("placeholders_corrected");
- const auto placeholdersCorrected = _journal.keyValueStoreGetBool(placeholdersCorrectedKey, false);
+ const auto placeholdersCorrected = _journal.keyValueStoreGetInt(placeholdersCorrectedKey, 0);
if (!placeholdersCorrected) {
qCDebug(lcFolder) << "Make sure all virtual files are placeholder files";
switchToVirtualFiles();