From c2ed7a2f619114cfb16d78f4dd8d51307b431c4d Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Wed, 16 Sep 2026 21:15:11 +0200 Subject: [PATCH] Relax tree-view sanity check (#1884) Followup of 1f360c1c which introduced a regression Fixes #1884 --- thunar/thunar-tree-view-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunar/thunar-tree-view-model.c b/thunar/thunar-tree-view-model.c index 9bd49f005..76b9f29e8 100644 --- a/thunar/thunar-tree-view-model.c +++ b/thunar/thunar-tree-view-model.c @@ -2835,7 +2835,7 @@ thunar_tree_view_model_dir_files_changed (Node *node_parent, /* SANITY CHECK: Protect against Use-After-Free race conditions where the parent * directory was renamed/detached before the child file's monitor event finished. */ - if (node_parent == NULL || (node_parent->ptr == NULL && node_parent->parent == NULL)) + if (node_parent == NULL) { g_message ("ThunarTreeViewModel: Caught and ignored files_changed on a detached node."); return; /* Abort the entire update for this ghost directory */ -- GitLab