sortlistmodel: Fix handling of section sort keys
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 May 2023 21:26:39 +0000 (17:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 27 May 2023 21:27:19 +0000 (17:27 -0400)
commit9f47bfe193b326abf3c2046274dba7e6e27da824
treeb55d2ca6452d424984d3e96f7f68c290014fa034
parent43417e9e55bd74a56f08d02669245422e98dc43a
sortlistmodel: Fix handling of section sort keys

    When the section sorter changes, we need to update
    the keys, otherwise the sorter will continue to report
    the old sections.

    This code is currently a bit suboptimal, since the
    creation of sort keys and section sort keys are
    muddled together.

Fixes: #5854
gtk/gtksortlistmodel.c