Revision: 1307
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1307&view=rev
Author:   nadvornik
Date:     2008-12-21 21:36:58 +0000 (Sun, 21 Dec 2008)

Log Message:
-----------
fixed safe delete

Modified Paths:
--------------
    trunk/src/filedata.c

Modified: trunk/src/filedata.c
===================================================================
--- trunk/src/filedata.c        2008-12-21 21:20:36 UTC (rev 1306)
+++ trunk/src/filedata.c        2008-12-21 21:36:58 UTC (rev 1307)
@@ -19,6 +19,7 @@
 #include "thumb_standard.h"
 #include "ui_fileops.h"
 #include "metadata.h"
+#include "trash.h"
 
 
 static GHashTable *file_data_pool = NULL;
@@ -1949,7 +1950,10 @@
        if (isdir(fd->path) && !islink(fd->path))
                return rmdir_utf8(fd->path);
        else
-               return unlink_file(fd->path);
+               if (options->file_ops.safe_delete_enable)
+                       return file_util_safe_unlink(fd->path);
+               else
+                       return unlink_file(fd->path);
 }
 
 gboolean file_data_perform_ci(FileData *fd)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to