This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit a7a38fd2645da0c74e89fb95a269ba3487af4114
Author: Cedric BAIL <[email protected]>
AuthorDate: Fri Oct 30 00:00:04 2026 -0600

    elementary: Collection_View leaves alone a position manager it lacks
    
    When a model was set before the position manager existed, the view
    still called into the manager that was not there: the calls on a NULL
    object log errors, and the size of rows 0 to count - 1 was reported as
    changed even for an empty model.
    
    Return before that when there is no manager. position_manager_set
    installs the data access itself once the manager comes, so nothing is
    lost by skipping it here.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/elementary/efl_ui_collection_view.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c
index dcff67e19d..4fb14c96c6 100644
--- a/src/lib/elementary/efl_ui_collection_view.c
+++ b/src/lib/elementary/efl_ui_collection_view.c
@@ -2413,6 +2413,9 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
    // Flush all pending request
    requests = _batch_request_flush(requests, data, pd);
 
+   /* No manager yet: position_manager_set installs the data access itself
+      once the manager comes. */
+   if (!pd->manager) return;
    switch (efl_ui_position_manager_entity_version(pd->manager, 1))
      {
        case 1:
@@ -2423,7 +2426,8 @@ _efl_ui_collection_view_model_changed(void *data, const Efl_Event *event)
            count);
        break;
      }
-   efl_ui_position_manager_entity_item_size_changed(pd->manager, 0, count - 1);
+   if (count)
+     efl_ui_position_manager_entity_item_size_changed(pd->manager, 0, count - 1);
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to