filesystemmodel: Ignore changes on the parent directory
authorCorey Berla <corey@berla.me>
Mon, 15 May 2023 20:10:21 +0000 (13:10 -0700)
committerCorey Berla <corey@berla.me>
Mon, 15 May 2023 22:50:40 +0000 (15:50 -0700)
commit133231e12b995202627a227a32acb26627a6cec4
tree3ee0a9c2c8e83c08a80dab85bda6ecd04a9afa47
parentef2024736d9c32a88ee50f50f8be391633b027a2
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