From d56341b1b42f56acdd61483fcac9d31e4c0e3e8a Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Mon, 23 Mar 2015 22:19:38 +0100 Subject: Always reload info for files that might have been changed by jobs (bug #11008) After a job has executed, it will report the "new files", and the thunar view should reload these. Unfortunately, while this makes it detect new files, it will not reload the file info for files found in the cache. So trigger a manual reload for these files in the view. --- thunar/thunar-standard-view.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c index 0ebfa62..cea3a7f 100644 --- a/thunar/thunar-standard-view.c +++ b/thunar/thunar-standard-view.c @@ -2925,7 +2925,12 @@ thunar_standard_view_new_files (ThunarStandardView *standard_view, { file = thunar_file_cache_lookup (lp->data); if (G_LIKELY (file != NULL)) - file_list = g_list_prepend (file_list, file); + { + file_list = g_list_prepend (file_list, file); + + /* always reload the 'new' file because the file info might have changed */ + thunar_file_reload (file); + } else if (!belongs_here && g_file_has_parent (lp->data, parent_file)) belongs_here = TRUE; } -- 2.3.3