summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-26 18:54:24 +0200
committerMike Blumenkrantz <zmike@samsung.com>2019-05-01 16:17:25 -0400
commit94ef4bf9c37d08178c614e7212fa03fb87f19243 (patch)
treeca678cb2ffc1d6f78005b7271e8bc26dec0c731f
parent88cc86222ebf3f4182d29fd5561ed06922b3415a (diff)
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 5ea11e1028..26a492d60b 100644
--- a/src/lib/elementary/efl_ui_pager.c
+++ b/src/lib/elementary/efl_ui_pager.c
@@ -862,7 +862,11 @@ _efl_ui_pager_efl_pack_unpack(Eo *obj,
862 if (!subobj) return EINA_FALSE; 862 if (!subobj) return EINA_FALSE;
863 863
864 int index = eina_list_data_idx(pd->content_list, subobj); 864 int index = eina_list_data_idx(pd->content_list, subobj);
865 if (index == -1) return EINA_FALSE; 865 if (index == -1)
866 {
867 ERR("You can only unpack items that have been added before");
868 return EINA_FALSE;
869 }
866 870
867 _unpack(obj, pd, subobj, index); 871 _unpack(obj, pd, subobj, index);
868 872