summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-xkb.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-xkb.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkb.c b/capplets/keyboard/mate-keyboard-properties-xkb.c
index 4f795719..7ccc0273 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkb.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkb.c
@@ -61,10 +61,8 @@ set_model_text (GtkWidget * picker, gchar * value)
XklConfigItem *ci = xkl_config_item_new ();
char *model = NULL;
- if (value != NULL) {
+ if (value != NULL && value[0] != '\0') {
model = g_strdup(value);
- if (model != NULL && model[0] == '\0')
- model = NULL;
}
if (model == NULL) {