From: Roy Richardson Date: Fri, 05 Aug 2016 09:50:16 +0000 Subject: [PATCH] Crash on rename a single file (bug #12264). Changes to thunar_folder_monitor to stop "files added" on "monitor move" event. --- diff -Naurp Thunar-1.6.10/thunar/thunar-folder.c Thunar-1.6.10-fix/thunar/thunar-folder.c --- Thunar-1.6.10/thunar/thunar-folder.c 2016-08-03 11:58:02.076666668 +0000 +++ Thunar-1.6.10-fix/thunar/thunar-folder.c 2016-08-03 11:57:28.846666000 +0000 @@ -737,8 +737,11 @@ thunar_folder_monitor (GFileMonitor if (folder->content_type_idle_id != 0) restart = g_source_remove (folder->content_type_idle_id); - /* if we don't have it, add it if the event is not an "deleted" event */ - if (G_UNLIKELY (lp == NULL && event_type != G_FILE_MONITOR_EVENT_DELETED)) + /* if we don't have it, and the event is not a "deleted" or "moved" + * event then add it */ + if (G_UNLIKELY (lp == NULL + && event_type != G_FILE_MONITOR_EVENT_DELETED + && event_type != G_FILE_MONITOR_EVENT_MOVED)) { /* allocate a file for the path */ file = thunar_file_get (event_file, NULL);