filesystemmodel: Ignore changes on the parent directory
authorCorey Berla <corey@berla.me>
Mon, 15 May 2023 20:10:21 +0000 (13:10 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:50:34 +0000 (07:50 -0400)
commit51140f2b3a79dde4c3f8db589d0d9fd39df42aaf
treeaa4c1633012c9f8474272ec7eeae5b3d43575bad
parent999f503eec642c7536d58d4f51c78ce5ffcc21ea
filesystemmodel: Ignore changes on the parent directory

The filesystemmodel tracks changes and additions to child files
through G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED.  This event will also
occur if the parent directory is changed.  Since the parent directory
doesn't exist in the model, it creates a non-existent item.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4233
gtk/gtkfilesystemmodel.c