From 95aa3ee53b8ccfd6de1aa783a80c8c6c0a546f26 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 23 Jan 2023 21:36:48 +0100 Subject: [PATCH] Make encrypted folder paths to delete non-relative when checking if they are encrypted Signed-off-by: Claudio Cambra --- src/gui/folder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 62156a7f0..05f61d6b8 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1341,7 +1341,7 @@ void Folder::removeLocalE2eFiles() const auto couldGetFiles = _journal.getFilesBelowPath("", [this, &e2eFoldersToBlacklist, &folderRootDir](const SyncJournalFileRecord &rec) { // We only want to add the root-most encrypted folder to the blacklist if (rec.isValid() && rec._isE2eEncrypted && rec.isDirectory()) { - QDir pathDir(rec._path); + QDir pathDir(_canonicalLocalPath + rec.path()); bool parentPathEncrypted = false; while (pathDir.cdUp() && pathDir != folderRootDir) { -- 2.30.2