treelistmodel: Fix handling of collapsed nodes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2022 12:20:33 +0000 (08:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2022 12:23:20 +0000 (08:23 -0400)
commitf1c1c979c2ddc5a73a1859edbd74b261735bd531
treeb371c78ea8731218593b65bf3907ecc8852e4197
parente68925a932ad3d5c1228aaeb6ed89dbe2e30225d
treelistmodel: Fix handling of collapsed nodes

When we collapse a node, we clear out the children,
but we were not disconnecting the signal handler on
the child listmodel, leading to bad outcomes when
that model is persistent and changing.

Fixes: #4595
gtk/gtktreelistmodel.c