aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-26 18:54:24 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-30 20:45:52 +0200
commit3fd16508a61cee0782b0a7521c2b882ce2864f70 (patch)
treea00efdeffad3ffb1b97d864e80d2901fa3d31024
parentefl_ui_pager: redirect deleted objects to the top (diff)
downloadefl-3fd16508a61cee0782b0a7521c2b882ce2864f70.tar.gz
efl_ui_pager: error when you try to delete something which unavailable
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8750
-rw-r--r--src/lib/elementary/efl_ui_pager.c6
1 files changed, 5 insertions, 1 deletions
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);