From f4841a575082fbe553848c30b640f38c63d045d4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 4 Feb 2013 11:50:30 +0000 Subject: [PATCH] fix list update on deletion of personal app launcher SVN revision: 83592 --- ChangeLog | 2 ++ NEWS | 2 ++ src/modules/conf_applications/e_int_config_apps_personal.c | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b86c9f3f3..8299d4e35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/NEWS b/NEWS index 8d77916d5..fe7871fd1 100644 --- a/NEWS +++ b/NEWS @@ -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 356802a97..8086627b8 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); } }