From 0919a2611edc20ce9dd7cb1eda3edc83522ffd3d Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Tue, 21 Sep 2021 12:34:02 +0200 Subject: Use NtfsPermissionLookupRAII when checking for readable/writeabel --- src/gui/folderman.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/folderman.cpp') diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index da54e3eaf..f3a2ac8ff 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -517,6 +517,10 @@ Folder *FolderMan::setupFolderFromOldConfigFile(const QString &file, AccountStat // check the unescaped variant (for the case when the filename comes out // of the directory listing). If the file does not exist, escape the // file and try again. + +#ifdef Q_OS_WIN + Utility::NtfsPermissionLookupRAII ntfs_perm; +#endif QFileInfo cfgFile(_folderConfigPath, file); if (!cfgFile.exists()) { -- cgit v1.2.3