filesystemmodel: fix crash when file is removed
authorMichael Catanzaro <mcatanzaro@redhat.com>
Thu, 23 Feb 2023 15:20:03 +0000 (09:20 -0600)
committerMichael Catanzaro <mcatanzaro@redhat.com>
Thu, 23 Feb 2023 15:20:03 +0000 (09:20 -0600)
commitc141d0a70a5e6190d3a473effe82a7563cd59c97
tree0472511f40f234ef53f13353b22425d20148744b
parent41b67c4722e64094ead02056e67509d31109ce94
filesystemmodel: fix crash when file is removed

In 32247bc50e63b709ae738a95a2ec71345b5fad75 node_get_for_file() was
changed to return GTK_INVALID_LIST_POSITION rather than 0 when the file
is untracked. Most call sites were updated accordingly, but this one was
missed.

Fixes #5619
gtk/gtkfilesystemmodel.c