summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorAlexander Schwinn <alexxcons@xfce.org>2021-11-15 14:45:29 +0100
committerAlexander Schwinn <alexxcons@xfce.org>2021-11-16 14:18:32 +0100
commit75a3066d9649b2130ba86e254fc72bc558cf59e9 (patch)
tree9dd007ee05fe67b5eab883976ac1e2e7a49b9956 /thunar
parent899d453ee55b9df1876e87d937872709757e323e (diff)
downloadthunar-75a3066d9649b2130ba86e254fc72bc558cf59e9.tar.gz
Regression: Can't copy and replace a directory any more (Issue #682)
Bug introduced in c93f84be Now that we duplicate on request "before" doing the copy, we always want to merge directories.
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-transfer-job.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/thunar/thunar-transfer-job.c b/thunar/thunar-transfer-job.c
index 47b3e1c1..52c960a7 100644
--- a/thunar/thunar-transfer-job.c
+++ b/thunar/thunar-transfer-job.c
@@ -460,7 +460,6 @@ ttj_copy_file (ThunarTransferJob *job,
GFile *source_file,
GFile *target_file,
GFileCopyFlags copy_flags,
- gboolean merge_directories,
GError **error)
{
GFileInfo *info;
@@ -585,9 +584,8 @@ ttj_copy_file (ThunarTransferJob *job,
&& target_type == G_FILE_TYPE_DIRECTORY))
{
/* we tried to overwrite a directory with a directory. this normally results
- * in a merge. ignore the error if we actually *want* to merge */
- if (merge_directories)
- g_clear_error (&err);
+ * in a merge. ignore that error, since we actually *want* to merge */
+ g_clear_error (&err);
}
else if (err->code == G_IO_ERROR_WOULD_RECURSE)
{
@@ -709,7 +707,7 @@ thunar_transfer_job_copy_file (ThunarTransferJob *job,
if (err == NULL)
{
/* try to copy the file from source file to the duplicate file */
- if (ttj_copy_file (job, source_file, target, copy_flags, FALSE, &err))
+ if (ttj_copy_file (job, source_file, target, copy_flags, &err))
return target;
else /* go to error case */
g_object_unref (target);