|
|
@ -188,10 +188,13 @@ bool SettingsStorage::writeNativeSettings() const |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Path newPath {nativeSettings->fileName()}; |
|
|
|
if (nativeSettings->status() != QSettings::NoError) |
|
|
|
if (nativeSettings->status() != QSettings::NoError) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Utils::Fs::removeFile(newPath); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const Path newPath {nativeSettings->fileName()}; |
|
|
|
|
|
|
|
QString finalPathStr = newPath.data(); |
|
|
|
QString finalPathStr = newPath.data(); |
|
|
|
const int index = finalPathStr.lastIndexOf(u"_new", -1, Qt::CaseInsensitive); |
|
|
|
const int index = finalPathStr.lastIndexOf(u"_new", -1, Qt::CaseInsensitive); |
|
|
|
finalPathStr.remove(index, 4); |
|
|
|
finalPathStr.remove(index, 4); |
|
|
|