From 43a38da9e220286be9faedf44e3339d8d1422606 Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Wed, 17 Feb 2016 17:47:38 +0100 Subject: Check if a thunar file is still valid before reloading --- thunar/thunar-file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 3262dfb..002c980 100644 --- thunar/thunar-file.c +++ thunar/thunar-file.c @@ -3920,7 +3920,9 @@ thunar_file_unwatch (ThunarFile *file) gboolean thunar_file_reload (ThunarFile *file) { - _thunar_return_if_fail (THUNAR_IS_FILE (file)); + /* if the file has already been destroyed, break here */ + if (!THUNAR_IS_FILE (file)) + return FALSE; /* clear file pxmap cache */ thunar_icon_factory_clear_pixmap_cache (file); -- 2.7.1