summaryrefslogtreecommitdiffstats
path: root/logic/settings
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-26 08:33:10 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-26 08:33:10 +0200
commit2f087b55b919d1aa27c32685209886a960b0ae57 (patch)
tree21dc85b5948d70919951cb627056170b3f5ac0e5 /logic/settings
parent2dcedcfde336d181e28d7884fe5b584e2527f0f1 (diff)
downloadMultiMC-2f087b55b919d1aa27c32685209886a960b0ae57.tar
MultiMC-2f087b55b919d1aa27c32685209886a960b0ae57.tar.gz
MultiMC-2f087b55b919d1aa27c32685209886a960b0ae57.tar.lz
MultiMC-2f087b55b919d1aa27c32685209886a960b0ae57.tar.xz
MultiMC-2f087b55b919d1aa27c32685209886a960b0ae57.zip
GH-997 fix saving of settings values with special characters
Values are now escaped properly
Diffstat (limited to 'logic/settings')
-rw-r--r--logic/settings/INIFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/settings/INIFile.cpp b/logic/settings/INIFile.cpp
index 27534f12..5d9052e9 100644
--- a/logic/settings/INIFile.cpp
+++ b/logic/settings/INIFile.cpp
@@ -88,7 +88,7 @@ bool INIFile::saveFile(QString fileName)
value = escape(value);
outArray.append(iter.key().toUtf8());
outArray.append('=');
- outArray.append(iter.value().toString().toUtf8());
+ outArray.append(value.toUtf8());
outArray.append('\n');
}
if(file.write(outArray) != outArray.size())