summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordivyesh purohit <div.purohit@samsung.com>2016-02-05 07:16:13 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-02-05 08:45:19 +0100
commitee0a65deccaf14da3c058f971ba8f1502baeae75 (patch)
treee33230f84af057e08bca1aa01db2930cf5880acf
parentbea9540099c836af0d7f1b354d4422fe826b1215 (diff)
multibuttonentry: fix Segfault on pressing Delete Key
Summary: Pressing "Delete" Key in MBE layout causes Segfault as MBE item is not deleted properly and also focus is not transferred back to MBE. @fix Signed-off-by: divyesh purohit <div.purohit@samsung.com> Test Plan: Run MultibuttonEntry example from elementart_test . Add some MBE items, now press the delete key, it should delete items without causing segfaults and transfer focus to previous MBE item. Reviewers: raster, cedric, CHAN, shilpasingh Reviewed By: shilpasingh Subscribers: rajeshps, govi Differential Revision: https://phab.enlightenment.org/D3635 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elc_multibuttonentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index 643610e27..71aa198df 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -1120,6 +1120,7 @@ _layout_key_down_cb(void *data,
1120 Elm_Multibuttonentry_Item_Data *item = sd->selected_it; 1120 Elm_Multibuttonentry_Item_Data *item = sd->selected_it;
1121 if (item && sd->editable) 1121 if (item && sd->editable)
1122 { 1122 {
1123 sd->items = eina_list_remove(sd->items, EO_OBJ(item));
1123 eo_do(EO_OBJ(item), elm_wdg_item_del()); 1124 eo_do(EO_OBJ(item), elm_wdg_item_del());
1124 elm_object_focus_set(sd->entry, EINA_TRUE); 1125 elm_object_focus_set(sd->entry, EINA_TRUE);
1125 } 1126 }