summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
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 /src/lib/eio/eio_model.c
parent4db762ee6cdb48e6d05c3670a7a5cc4f82996f99 (diff)
Eio: fix eio_model children_slice_get all
Diffstat (limited to 'src/lib/eio/eio_model.c')
-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 b60d19b..9baec99 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,
897 scheduler = efl_loop_future_scheduler_get(obj); 897 scheduler = efl_loop_future_scheduler_get(obj);
898 if (!scheduler) return NULL; 898 if (!scheduler) return NULL;
899 899
900 if (count == 0)
901 {
902 count = eina_list_count(pd->files);
903 start = 0;
904 }
905
900 // Children must have been listed first 906 // Children must have been listed first
901 if (count == 0 || (start + count > eina_list_count(pd->files))) 907 if (count == 0 || (start + count > eina_list_count(pd->files)))
902 return eina_future_rejected(scheduler, EFL_MODEL_ERROR_INCORRECT_VALUE); 908 return eina_future_rejected(scheduler, EFL_MODEL_ERROR_INCORRECT_VALUE);