Settings now saves unicode QString settings properly

Fix #503
This commit is contained in:
Rasmus Karlsson 2018-06-24 13:20:55 +00:00
parent ecfe9646dd
commit 6c727cf82b

View file

@ -10,7 +10,7 @@ template <>
struct Serialize<QString> { struct Serialize<QString> {
static rapidjson::Value get(const QString &value, rapidjson::Document::AllocatorType &a) static rapidjson::Value get(const QString &value, rapidjson::Document::AllocatorType &a)
{ {
rapidjson::Value ret(qPrintable(value), a); rapidjson::Value ret(value.toUtf8(), a);
return ret; return ret;
} }