projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2478a3
)
fixed safe delete
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Sun, 21 Dec 2008 21:36:58 +0000
(21:36 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Sun, 21 Dec 2008 21:36:58 +0000
(21:36 +0000)
src/filedata.c
patch
|
blob
|
history
diff --git
a/src/filedata.c
b/src/filedata.c
index
4aca86d
..
fb461dc
100644
(file)
--- a/
src/filedata.c
+++ b/
src/filedata.c
@@
-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
@@
static gboolean file_data_perform_delete(FileData *fd)
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)