Skip to content
  • bbbw's avatar
    searchview: Fix crash in FlowBox allocations · 99225107
    bbbw authored and Marinus Schraal's avatar Marinus Schraal committed
    If a search is performed and allocation occurs and hides some results,
    the 'visible' property of the widget in the FlowBox will be assigned
    False. However, when a new search is performed, this property is not
    updated to True, but the old value is kept. So, if the search results
    for artist or albums happen to overlap with previously hidden results,
    then last_child in _on_artist_flowbox_size_allocate() and
    last_visible_child in _on_album_flowbox_size_allocate() can be None,
    which will cause a crash.
    
    To fix this, every time a new search is triggered all FlowBox widgets
    set 'visible' to True.
    
    Fixes #372
    99225107