summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Lira <larry@expertisesolutions.com.br>2018-06-07 18:41:48 -0300
committerLarry Lira <larry@expertisesolutions.com.br>2018-06-07 19:15:50 -0300
commit1fb268ac3c7745bdf60eb0513ddf9dd8dec76427 (patch)
tree68ba3f964577b5c072f236a3b173fdda943b4879
parent4db762ee6cdb48e6d05c3670a7a5cc4f82996f99 (diff)
downloadefl-1fb268ac3c7745bdf60eb0513ddf9dd8dec76427.tar.gz
Eio: fix eio_model children_slice_get all
-rw-r--r--src/lib/eio/eio_model.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index b60d19b5e5..9baec99117 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -897,6 +897,12 @@ _eio_model_efl_model_children_slice_get(Eo *obj, Eio_Model_Data *pd,
scheduler = efl_loop_future_scheduler_get(obj);
if (!scheduler) return NULL;
+ if (count == 0)
+ {
+ count = eina_list_count(pd->files);
+ start = 0;
+ }
+
// Children must have been listed first
if (count == 0 || (start + count > eina_list_count(pd->files)))
return eina_future_rejected(scheduler, EFL_MODEL_ERROR_INCORRECT_VALUE);