region: GKBD_KEYBOARD_CONFIG_KEY_LAYOUTS can be empty
But non-NULL. Handle that case.
This commit is contained in:
parent
5152655a12
commit
06e04097fd
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ xkb_layouts_get_selected_list (void)
|
|||
|
||||
retval = g_settings_get_strv (xkb_keyboard_settings,
|
||||
GKBD_KEYBOARD_CONFIG_KEY_LAYOUTS);
|
||||
if (retval == NULL) {
|
||||
if (retval == NULL || retval[0] == NULL) {
|
||||
g_strfreev (retval);
|
||||
retval = g_strdupv (initial_config.layouts_variants);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue