Eio: fix eio_model children_slice_get all

This commit is contained in:
Larry Lira 2018-06-07 18:41:48 -03:00
parent 4db762ee6c
commit 1fb268ac3c
1 changed files with 6 additions and 0 deletions

View File

@ -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);