keyboard: Simplify bit of code

This commit is contained in:
Bastien Nocera 2011-02-15 17:58:45 +00:00
parent 47770ed40c
commit 816068ff6f

View file

@ -617,10 +617,7 @@ parse_start_tag (GMarkupParseContext *ctx,
key.name = g_strdup (name);
key.description_name = NULL;
key.value = value;
if (gconf_key)
key.key = g_strdup (gconf_key);
else
key.key = NULL;
key.key = g_strdup (gconf_key);
key.comparison = comparison;
key.cmd_name = NULL;
g_array_append_val (keylist->entries, key);