aboutsummaryrefslogtreecommitdiff
path: root/src/path_functions.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2021-04-23 02:18:56 -0500
committerGitHub <noreply@github.com>2021-04-23 02:18:56 -0500
commit66f2369af2c4e15ef3eb605f2eefcbc10b576455 (patch)
treea2fac1555d37dc2af7e879ab1a565485dc12a173 /src/path_functions.cpp
parent93c8befeceae051778fce16fc5c1bfef94cb5562 (diff)
Fix Cyrillic characters not being read correctly from QSettings inis (#535)
* set ini codecs to utf8 * fix color config reading in Latin1 rather than Utf8
Diffstat (limited to 'src/path_functions.cpp')
-rw-r--r--src/path_functions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp
index 79851c11..dbf1cc40 100644
--- a/src/path_functions.cpp
+++ b/src/path_functions.cpp
@@ -173,6 +173,7 @@ QString AOApplication::get_config_value(QString p_identifier, QString p_config,
p = get_case_sensitive_path(p);
if (file_exists(p)) {
QSettings settings(p, QSettings::IniFormat);
+ settings.setIniCodec("UTF-8");
QVariant value = settings.value(p_identifier);
if (value.type() == QVariant::StringList) {
// qDebug() << "got" << p << "is a string list, returning" << value.toStringList().join(",");