From 6c727cf82b681957167deee7fc2a59fe01fd0a28 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 24 Jun 2018 13:20:55 +0000 Subject: [PATCH] Settings now saves unicode QString settings properly Fix #503 --- src/util/serialize-custom.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/serialize-custom.hpp b/src/util/serialize-custom.hpp index 2fa1367b2..4682a2eb4 100644 --- a/src/util/serialize-custom.hpp +++ b/src/util/serialize-custom.hpp @@ -10,7 +10,7 @@ template <> struct Serialize { 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; }