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 23:09:05 +0000 (19:09 -0400)
commitc3d3e2d47b772b96848628bb68b0d4e7e9fd3fad
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