bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3fd16508a61cee0782b0a7521c2b882ce2864f70
commit 3fd16508a61cee0782b0a7521c2b882ce2864f70 Author: Marcel Hollerbach <[email protected]> Date: Fri Apr 26 18:54:24 2019 +0200 efl_ui_pager: error when you try to delete something which unavailable Reviewed-by: Cedric BAIL <[email protected]> Differential Revision: https://phab.enlightenment.org/D8750 --- src/lib/elementary/efl_ui_pager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c index 2ee70d6c21..620b8e8344 100644 --- a/src/lib/elementary/efl_ui_pager.c +++ b/src/lib/elementary/efl_ui_pager.c @@ -907,7 +907,11 @@ _efl_ui_pager_efl_pack_unpack(Eo *obj, if (!subobj) return EINA_FALSE; int index = eina_list_data_idx(pd->content_list, subobj); - if (index == -1) return EINA_FALSE; + if (index == -1) + { + ERR("You can only unpack items that have been added before"); + return EINA_FALSE; + } _unpack(obj, pd, subobj, index); --
