Allow utf8 in roster resource char

This commit is contained in:
Michael Vetter
2021-10-22 16:29:08 +02:00
parent a668ca45b7
commit 83ee4a27cb
6 changed files with 28 additions and 30 deletions

View File

@@ -438,8 +438,8 @@ _load_preferences(void)
if (g_key_file_has_key(theme, "ui", "roster.resource.char", NULL)) {
gchar* ch = g_key_file_get_string(theme, "ui", "roster.resource.char", NULL);
if (ch && strlen(ch) > 0) {
prefs_set_roster_resource_char(ch[0]);
if (ch && g_utf8_strlen(ch, 4) == 1) {
prefs_set_roster_resource_char(ch);
g_free(ch);
}
} else {