summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 10:57:28 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 15:03:21 +0200
commitad461109c1475d7f4622dcd90a02ea8e61a015c8 (patch)
tree1823235e0afd6710475c00fe65356ec32877d9c9
parent81a3ed0f737616e1e4d75935ecd790bc11861809 (diff)
downloadefl-ad461109c1475d7f4622dcd90a02ea8e61a015c8.tar.gz
set model before setting data access
-rw-r--r--src/lib/elementary/efl_ui_collection_view.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c
index c945773515..227f58255d 100644
--- a/src/lib/elementary/efl_ui_collection_view.c
+++ b/src/lib/elementary/efl_ui_collection_view.c
@@ -1714,15 +1714,6 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
efl_ui_view_model_set(efl_added, ev->current));
count = efl_model_children_count_get(model);
- switch(efl_ui_position_manager_entity_version(pd->manager, 1))
- {
- case 1:
- efl_ui_position_manager_data_access_v1_data_access_set(pd->manager,
- efl_ref(data), _batch_entity_cb, NULL,
- efl_ref(data), _batch_size_cb, NULL,
- count);
- break;
- }
/*for (i = 0; i < 3; i++)
{
@@ -1747,6 +1738,17 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
requests = _batch_request_flush(requests, data, pd);
pd->model = model;
+ switch(efl_ui_position_manager_entity_version(pd->manager, 1))
+ {
+ case 1:
+ efl_ui_position_manager_data_access_v1_data_access_set(pd->manager,
+ efl_ref(data), _batch_entity_cb, NULL,
+ efl_ref(data), _batch_size_cb, NULL,
+ count);
+ break;
+ }
+
+
}
static void