GH-997 fix saving of settings values with special characters
Values are now escaped properly
This commit is contained in:
parent
2dcedcfde3
commit
2f087b55b9
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user