diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-21 13:34:02 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-22 13:50:48 +0300 |
commit | 0919a2611edc20ce9dd7cb1eda3edc83522ffd3d (patch) | |
tree | e58717a25884ff682d3004269cc521c3312e9962 /src/gui/folder.cpp | |
parent | 2a95f3b442e6f75eda39347c3c08ea84fb436335 (diff) |
Use NtfsPermissionLookupRAII when checking for readable/writeabel
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r-- | src/gui/folder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index a8fd26c85..0dc9026e1 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -159,6 +159,9 @@ Folder::~Folder() bool Folder::checkLocalPath() { +#ifdef Q_OS_WIN + Utility::NtfsPermissionLookupRAII ntfs_perm; +#endif const QFileInfo fi(_definition.localPath); _canonicalLocalPath = fi.canonicalFilePath(); #ifdef Q_OS_MAC |