[Xfce-bugs] [Bug 12264] Crash when renaming single file in folder

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Mon Aug 1 18:38:41 CEST 2016


https://bugzilla.xfce.org/show_bug.cgi?id=12264

Roy Richardson <rocketx86 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rocketx86 at gmail.com

--- Comment #71 from Roy Richardson <rocketx86 at gmail.com> ---
After quite a bit of debugging and testing I have produced the following rename
patch for Thunar.

--- Thunar-1.6.10/thunar/thunar-io-jobs.c       2015-05-22 13:25:36.000000000
+0000
+++ Thunar-1.6.10-fix/thunar/thunar-io-jobs.c   2016-08-01 11:07:09.016666668
+0000
@@ -1307,7 +1307,12 @@
 {
   _thunar_return_val_if_fail (THUNAR_IS_FILE (file), NULL);
   _thunar_return_val_if_fail (g_utf8_validate (display_name, -1, NULL), NULL);
-
+  
+  if (!THUNAR_IS_FILE (file))
+    {
+      return NULL;
+    }
+  
   return thunar_simple_job_launch (_thunar_io_jobs_rename, 2, 
                                    THUNAR_TYPE_FILE, file, 
                                    G_TYPE_STRING, display_name);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list