e_xkb: refactor command creation code

-model was set to default if e_config->xkb.default_model was default.
Fix this and always set e_config->xkb.default_model.
This commit is contained in:
Marcel Hollerbach 2016-01-26 22:48:24 +01:00
parent 893f3b1669
commit 3677ff12f9
1 changed files with 1 additions and 7 deletions

View File

@ -168,13 +168,7 @@ _e_x_xkb_update(int cur_group)
else if (e_config->xkb.default_model)
{
eina_strbuf_append(buf, " -model '");
if (strcmp(e_config->xkb.default_model, "default"))
eina_strbuf_append(buf, e_config->xkb.default_model);
else if ((e_config->xkb.default_model) &&
(strcmp(e_config->xkb.default_model, "default")))
eina_strbuf_append(buf, e_config->xkb.default_model);
else
eina_strbuf_append(buf, "default");
eina_strbuf_append(buf, e_config->xkb.default_model);
eina_strbuf_append(buf, "'");
}