[gnome-commander] When copying files only step into recursive copy when not done already



commit 0293003dc7c06fdf152422f8105a40e6db24f99d
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Mar 14 22:38:38 2022 +0100

    When copying files only step into recursive copy when not done already

 src/gnome-cmd-xfer.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index f74edabc..a583b651 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -1446,7 +1446,8 @@ gnome_cmd_copy_gfile_recursive (GFile *srcGFile,
                     xferData->problem_action = COPY_ERROR_ACTION_NO_ACTION_YET;
                     break;
                 case COPY_ERROR_ACTION_REPLACE_ALL:
-                    gnome_cmd_copy_gfile_recursive(srcGFile, destGFile, G_FILE_COPY_OVERWRITE, xferData);
+                    if (copyFlags != G_FILE_COPY_OVERWRITE)
+                        gnome_cmd_copy_gfile_recursive(srcGFile, destGFile, G_FILE_COPY_OVERWRITE, xferData);
                     break;
                 case COPY_ERROR_ACTION_SKIP_ALL:
                     return true;


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