Commit 3ad7db31 authored by Aard's avatar Aard

Only sync after complete files; use QDir filter for ./..

parent 0c5b2a39
......@@ -41,7 +41,7 @@ void SsuSettings::merge(){
SsuLog *ssuLog = SsuLog::instance();
QDirIterator it(settingsd, QDirIterator::FollowSymlinks);
QDirIterator it(settingsd, QDir::AllEntries|QDir::NoDotAndDotDot, QDirIterator::FollowSymlinks);
QStringList settingsFiles;
QFileInfo oldSettingsInfo(fileName());
......@@ -49,8 +49,6 @@ void SsuSettings::merge(){
while (it.hasNext()){
QString f = it.next();
if (it.fileName() == "." || it.fileName() == "..") continue;
settingsFiles.append(it.filePath());
QFileInfo info(it.filePath());
......@@ -84,8 +82,8 @@ void SsuSettings::merge(){
settings.endGroup();
endGroup();
sync();
}
sync();
}
}
......
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