GH-997 fix saving of settings values with special characters

Values are now escaped properly
This commit is contained in:
Petr Mrázek 2015-05-26 08:33:10 +02:00
parent 2dcedcfde3
commit 2f087b55b9

View File

@ -88,7 +88,7 @@ bool INIFile::saveFile(QString fileName)
value = escape(value); value = escape(value);
outArray.append(iter.key().toUtf8()); outArray.append(iter.key().toUtf8());
outArray.append('='); outArray.append('=');
outArray.append(iter.value().toString().toUtf8()); outArray.append(value.toUtf8());
outArray.append('\n'); outArray.append('\n');
} }
if(file.write(outArray) != outArray.size()) if(file.write(outArray) != outArray.size())