treelistmodel: Be safer during collapsing
authorBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 21:30:37 +0000 (23:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 21:30:37 +0000 (23:30 +0200)
commit8766a6fab2143fcf0191872ca711dc046d10b7d7
tree102d94c4589e01e361ef061a9c68b068e104690d
parentf52975c22080258bfbb63d74968f239b69a5eed6
treelistmodel: Be safer during collapsing

While we are collapsing a subtree, some signal handlers may not be
disconnected while we are doing this. By adding this check and not
giving those nodes no longer access to the model, we can stop it from
modifying it while we are trying to collapse stuff.

Fixes some crashes in gnome-builder.
gtk/gtktreelistmodel.c