aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-08-26 15:44:02 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2019-08-26 15:44:10 +0900
commit531f8920990dfc71a99250eae732b3270b568f50 (patch)
tree8f201c8d09a6d7c87d8cf1942a7cc412e81fc047
parentelementary: add an example to test Efl.Ui.CollectionView. (diff)
downloadefl-devs/cedric/collectionview.tar.gz
collection_view : fix model missing error when model changeddevs/cedric/collectionview
model is not storing after null set in model changed, so collection view cannot tracking model changes properly. Signed-off-by: SangHyeon Jade Lee <sh10233.lee@samsung.com>
-rw-r--r--src/lib/elementary/efl_ui_collection_view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c
index 731a4e2431..95b16a6a61 100644
--- a/src/lib/elementary/efl_ui_collection_view.c
+++ b/src/lib/elementary/efl_ui_collection_view.c
@@ -1440,6 +1440,8 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
if (!model) model = efl_add(EFL_VIEW_MODEL_CLASS, data,
efl_ui_view_model_set(efl_added, ev->current));
+ pd->model = model;
+
count = efl_model_children_count_get(model);
efl_ui_position_manager_entity_data_access_set(pd->manager,
efl_ref(data), _batch_entity_cb, _batch_free_cb,