summaryrefslogtreecommitdiff
path: root/src/modules/conf_keybindings
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-03 10:16:59 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-03 10:16:59 +0000
commit9ab2f7b1eecee5451fafbb52b82caf57e3ae3d86 (patch)
treede1b1c3586145163d7c771e4958b8762806e14ce /src/modules/conf_keybindings
parent8adb889d90a8241faf37b9598710d6312cde9971 (diff)
clean up some stringshare use
SVN revision: 80035
Diffstat (limited to 'src/modules/conf_keybindings')
-rw-r--r--src/modules/conf_keybindings/e_int_config_keybindings.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/modules/conf_keybindings/e_int_config_keybindings.c b/src/modules/conf_keybindings/e_int_config_keybindings.c
index ec9c0df0c..4520a73a6 100644
--- a/src/modules/conf_keybindings/e_int_config_keybindings.c
+++ b/src/modules/conf_keybindings/e_int_config_keybindings.c
@@ -1152,17 +1152,9 @@ _auto_apply_changes(E_Config_Dialog_Data *cfdata)
1152 actd = eina_list_nth(actg->acts, a); 1152 actd = eina_list_nth(actg->acts, a);
1153 if (!actd) return; 1153 if (!actd) return;
1154 1154
1155 eina_stringshare_del(bi->action); 1155 eina_stringshare_replace(&bi->action, actd->act_cmd);
1156 bi->action = NULL; 1156 eina_stringshare_replace(&bi->params, actd->act_params);
1157 1157 if (!bi->params)
1158 if (actd->act_cmd) bi->action = eina_stringshare_add(actd->act_cmd);
1159
1160 eina_stringshare_del(bi->params);
1161 bi->params = NULL;
1162
1163 if (actd->act_params)
1164 bi->params = eina_stringshare_add(actd->act_params);
1165 else
1166 { 1158 {
1167 ok = 1; 1159 ok = 1;
1168 if (cfdata->locals.params) 1160 if (cfdata->locals.params)