diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2013-02-04 11:50:30 +0000 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2013-02-04 11:50:30 +0000 |
commit | f4841a575082fbe553848c30b640f38c63d045d4 (patch) | |
tree | 67bcef6b8729ec135f6947774626a35432c47f69 | |
parent | a1425546f364b6644dd9333c997218c6aae670a3 (diff) | |
download | enlightenment-f4841a575082fbe553848c30b640f38c63d045d4.tar.gz |
fix list update on deletion of personal app launcher
SVN revision: 83592
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/modules/conf_applications/e_int_config_apps_personal.c | 6 |
3 files changed, 9 insertions, 1 deletions
@@ -2,6 +2,8 @@ * optimize use of edje_file_collection_list * add support for edje files in filepreview widget + * fix possible crash in xkb rule parsing + * fix list update on deletion of personal app launchers 2013-02-01 Mike Blumenkrantz @@ -139,3 +139,5 @@ Fixes: * fixed bugs where keyboard layouts could not be applied or selected * fixed leak in profile list dbus method * fixed behavior of Up/Down keys in filemanager when typebuf was visible + * fix possible crash in xkb rule parsing + * fix list update on deletion of personal app launchers diff --git a/src/modules/conf_applications/e_int_config_apps_personal.c b/src/modules/conf_applications/e_int_config_apps_personal.c index 356802a972..8086627b86 100644 --- a/src/modules/conf_applications/e_int_config_apps_personal.c +++ b/src/modules/conf_applications/e_int_config_apps_personal.c @@ -199,14 +199,18 @@ _btn_cb_del(void *data, void *data2 __UNUSED__) E_Config_Dialog_Data *cfdata = data; const Eina_List *l; const E_Ilist_Item *it; + int x = -1; EINA_LIST_FOREACH(e_widget_ilist_items_get(cfdata->obj.list), l, it) { const char *file; + x++; if (!it->selected) continue; file = e_widget_ilist_item_data_get(it); - if (file) ecore_file_unlink(file); + if (!file) break; + ecore_file_unlink(file); + e_widget_ilist_remove_num(cfdata->obj.list, x); } } |