# HG changeset patch # User nadvornik # Date 1229895418 0 # Node ID 97f30a17dc6bb675633de406001227f914afb4e9 # Parent e2bbe90b0dcd19f1b268d30dd3a4d6df1d386397 fixed safe delete diff -r e2bbe90b0dcd -r 97f30a17dc6b src/filedata.c --- a/src/filedata.c Sun Dec 21 21:20:36 2008 +0000 +++ b/src/filedata.c Sun Dec 21 21:36:58 2008 +0000 @@ -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)