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-10 10:08:09 +0200
commit1080d43145b52d483bf8cbf8221a542fbf938041 (patch)
tree3fc23198af745fc2ed3c64a60183079f63a633dd
parent8aea9f88c3a36d6475ff3580fb7e95324dc4f2e1 (diff)
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)
1714 efl_ui_view_model_set(efl_added, ev->current)); 1714 efl_ui_view_model_set(efl_added, ev->current));
1715 1715
1716 count = efl_model_children_count_get(model); 1716 count = efl_model_children_count_get(model);
1717 switch(efl_ui_position_manager_entity_version(pd->manager, 1))
1718 {
1719 case 1:
1720 efl_ui_position_manager_data_access_v1_data_access_set(pd->manager,
1721 efl_ref(data), _batch_entity_cb, NULL,
1722 efl_ref(data), _batch_size_cb, NULL,
1723 count);
1724 break;
1725 }
1726 1717
1727 /*for (i = 0; i < 3; i++) 1718 /*for (i = 0; i < 3; i++)
1728 { 1719 {
@@ -1747,6 +1738,17 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
1747 requests = _batch_request_flush(requests, data, pd); 1738 requests = _batch_request_flush(requests, data, pd);
1748 1739
1749 pd->model = model; 1740 pd->model = model;
1741 switch(efl_ui_position_manager_entity_version(pd->manager, 1))
1742 {
1743 case 1:
1744 efl_ui_position_manager_data_access_v1_data_access_set(pd->manager,
1745 efl_ref(data), _batch_entity_cb, NULL,
1746 efl_ref(data), _batch_size_cb, NULL,
1747 count);
1748 break;
1749 }
1750
1751
1750} 1752}
1751 1753
1752static void 1754static void