diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-26 08:33:10 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-26 08:33:10 +0200 |
commit | 2f087b55b919d1aa27c32685209886a960b0ae57 (patch) | |
tree | 21dc85b5948d70919951cb627056170b3f5ac0e5 /logic/settings | |
parent | 2dcedcfde336d181e28d7884fe5b584e2527f0f1 (diff) | |
download | MultiMC-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.cpp | 2 |
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()) |