cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b5b9f72f57b29337dbb034a3704734a0aab9d178
commit b5b9f72f57b29337dbb034a3704734a0aab9d178 Author: Cedric BAIL <ced...@osg.samsung.com> Date: Thu May 10 16:45:15 2018 -0700 elementary: when there is no file listed yet, no need to request them. --- src/lib/elementary/elc_fileselector.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c index e53b46d06e..189e1d7b04 100644 --- a/src/lib/elementary/elc_fileselector.c +++ b/src/lib/elementary/elc_fileselector.c @@ -1010,17 +1010,24 @@ _populate(Evas_Object *obj, if (selected) { fetch = efl_model_property_get(selected, "path"); - string = eina_value_to_string(fetch); - lreq->selected_path = eina_stringshare_add(string); - eina_value_free(fetch); - free(string); + string = eina_value_to_string(fetch); + lreq->selected_path = eina_stringshare_add(string); + eina_value_free(fetch); + free(string); } - future = efl_model_children_slice_get(model, 0, efl_model_children_count_get(model)); - future = eina_future_then(future, _process_children_cb, lreq); - efl_future_Eina_FutureXXX_then(obj, future); - _signal_first(lreq); + + if (efl_model_children_count_get(model)) + { + future = efl_model_children_slice_get(model, 0, efl_model_children_count_get(model)); + future = eina_future_then(future, _process_children_cb, lreq); + efl_future_Eina_FutureXXX_then(obj, future); + } + else + { + _process_last(lreq); + } } static void --