diff options
-rw-r--r-- | libmatekbd/matekbd-desktop-config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmatekbd/matekbd-desktop-config.c b/libmatekbd/matekbd-desktop-config.c index 39c31ef..0038a9b 100644 --- a/libmatekbd/matekbd-desktop-config.c +++ b/libmatekbd/matekbd-desktop-config.c @@ -276,7 +276,7 @@ matekbd_desktop_config_load_group_descriptions (MatekbdDesktopConfig { gchar **sld, **lld, **svd, **lvd; gchar **psld, **plld, **plvd; - gchar **psgn, **pfgn; + gchar **psgn, **pfgn, **psvd; gint total_descriptions; if (!matekbd_desktop_config_get_lv_descriptions @@ -295,8 +295,11 @@ matekbd_desktop_config_load_group_descriptions (MatekbdDesktopConfig plld = lld; psld = sld; plvd = lvd; + psvd = svd; while (plld != NULL && *plld != NULL) { - *psgn++ = g_strdup (*psld++); + gchar *sd = (*psvd[0] == '\0') ? *psld : *psvd; + psld++, psvd++; + *psgn++ = g_strdup (sd); *pfgn++ = g_strdup (matekbd_keyboard_config_format_full_layout (*plld++, *plvd++)); } |