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

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-21 13:34:02 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-22 13:50:48 +0300
commit0919a2611edc20ce9dd7cb1eda3edc83522ffd3d (patch)
treee58717a25884ff682d3004269cc521c3312e9962 /src/gui/accountmanager.cpp
parent2a95f3b442e6f75eda39347c3c08ea84fb436335 (diff)
Use NtfsPermissionLookupRAII when checking for readable/writeabel
Diffstat (limited to 'src/gui/accountmanager.cpp')
-rw-r--r--src/gui/accountmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index 595ee8858..b7ea4f36e 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -153,6 +153,9 @@ bool AccountManager::restoreFromLegacySettings()
qCInfo(lcAccountManager) << "Migrate: checking old config " << oCCfgFile;
+#ifdef Q_OS_WIN
+ Utility::NtfsPermissionLookupRAII ntfs_perm;
+#endif
QFileInfo fi(oCCfgFile);
if (fi.isReadable()) {
std::unique_ptr<QSettings> oCSettings(new QSettings(oCCfgFile, QSettings::IniFormat));