Commit 54f53794 authored by Daniel Teske's avatar Daniel Teske

SettingsAccessor: Also read hidden or system files

If the user uses a name with a . in front, those files need to read
too.

Change-Id: I5d8a762afa5dc4cff646f2a5cf2e4eabf6f9bc99
Task-number: QTCREATORBUG-13127
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 2bfb4fbf
......@@ -990,9 +990,9 @@ QList<FileName> SettingsAccessor::settingsFiles(const QString &suffix) const
if (!sharedUserFileDir().isEmpty()) {
const QString sharedPath = sharedUserFileDir() + QLatin1Char('/')
+ makeRelative(pfi.absolutePath());
list.append(QDir(sharedPath).entryInfoList(filter, QDir::Files));
list.append(QDir(sharedPath).entryInfoList(filter, QDir::Files | QDir::Hidden | QDir::System));
}
list.append(QDir(pfi.dir()).entryInfoList(filter, QDir::Files));
list.append(QDir(pfi.dir()).entryInfoList(filter, QDir::Files | QDir::Hidden | QDir::System));
foreach (const QFileInfo &fi, list) {
const FileName path = FileName::fromString(fi.absoluteFilePath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment