Skip to content
  • Andrew den Exter's avatar
    Fix crash when dragging items outside visible area. · 530b773d
    Andrew den Exter authored
    
    
    If asynchronous item creation finishes while the content area of a
    ListView has been dragged full outside the visible area a full refill
    is triggered which can overwrite the requested index and potentially
    result in a single delegate item being assigned to multiple view items
    and later being doubly released.  Only create the view item object in
    the createItem function to prevent this from happening.
    
    Secondly only reset the visible items if jumping outside the buffer
    range rather than just the fill range to prevent churn when the list
    only contains buffered items.
    
    Task-number: QTBUG-26232
    
    Change-Id: I5bce845898ef5f699f34afc268594ef38e01d6a3
    Reviewed-by: default avatarMartin Jones <martin.jones@nokia.com>
    530b773d