Eio: fix eio_model children_slice_get all
authorLarry Lira <larry@expertisesolutions.com.br>
Thu, 7 Jun 2018 21:41:48 +0000 (18:41 -0300)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 12 Jun 2018 05:47:09 +0000 (14:47 +0900)
src/lib/eio/eio_model.c

index b60d19b..9baec99 100644 (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);