Allow utf8 in occupants header char

This commit is contained in:
Michael Vetter
2021-10-22 16:51:15 +02:00
parent 1c96115f97
commit a9bcc8e8bd
6 changed files with 24 additions and 29 deletions

View File

@@ -414,8 +414,8 @@ _load_preferences(void)
if (g_key_file_has_key(theme, "ui", "occupants.header.char", NULL)) {
gchar* ch = g_key_file_get_string(theme, "ui", "occupants.header.char", NULL);
if (ch && strlen(ch) > 0) {
prefs_set_occupants_header_char(ch[0]);
if (ch && g_utf8_strlen(ch, 4) == 1) {
prefs_set_occupants_header_char(ch);
g_free(ch);
}
}