Skip to content
Snippets Groups Projects
Commit 7074fbc6 authored by Alexander Schwinn's avatar Alexander Schwinn
Browse files

Prevent crash for copy+overwrite via DBus (#1002)

E.g. when copy files from thunar to desktop. In that case no undo/redo operation will be filed.
parent fe149fb2
No related branches found
No related tags found
No related merge requests found
Pipeline #19815 passed
......@@ -657,13 +657,12 @@ ttj_copy_file (ThunarTransferJob *job,
}
else
{
if (add_to_operation)
if (add_to_operation && thunar_job_get_log_mode (THUNAR_JOB (job)) == THUNAR_OPERATION_LOG_OPERATIONS)
{
if (copy_flags & G_FILE_COPY_OVERWRITE)
thunar_job_operation_overwrite (operation, target_file);
if (thunar_job_get_log_mode (THUNAR_JOB (job)) == THUNAR_OPERATION_LOG_OPERATIONS)
thunar_job_operation_add (operation, source_file, target_file);
thunar_job_operation_add (operation, source_file, target_file);
}
return TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment