[easytag] Ask for confirmation when overwriting a file



commit a84d6677a63fe65e2ec871e4b7432163683a1b49
Author: David King <amigadave amigadave com>
Date:   Sun Mar 16 11:47:17 2014 +0000

    Ask for confirmation when overwriting a file
    
    When file renaming was rewritten to use GIO as part of bug 700500,
    renames were set to overwrite the destination file. Change this
    behaviour back to the original behaviour, to avoid data loss.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726448

 src/easytag.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 71c0f90..25b7814 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -3053,8 +3053,8 @@ et_rename_file (const char *old_filepath, const char *new_filepath,
     g_object_unref (file_new_parent);
 
     /* Move the file. */
-    if (!g_file_move (file_old, file_new, G_FILE_COPY_OVERWRITE, NULL, NULL,
-                      NULL, error))
+    if (!g_file_move (file_old, file_new, G_FILE_COPY_NONE, NULL, NULL, NULL,
+                      error))
     {
         /* Error moving file. */
         g_object_unref (file_old);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]