Comment 139 for bug 1512120

Revision history for this message
In , B-frank-r (b-frank-r) wrote :

After renaming a few files Thunar may crash after hitting enter in the rename dialog.

In an attempt to resolve this I used this patch:
-----------------------------------------------------------------------------
--- Thunar-1.6.10/thunar/thunar-file.c 2015-05-22 15:25:36.000000000 +0200
+++ Thunar-1.6.10-patched/thunar/thunar-file.c 2016-05-15 15:13:21.613406924 +0200
@@ -3918,7 +3918,9 @@
 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);
-----------------------------------------------------------------------------

It works but only if I click the OK button in the rename dialog. The crash occurs when hitting enter following the new name.