diff options
author | Alexandru Fazakas <alex.fazakas97@gmail.com> | 2018-07-30 17:16:11 +0300 |
---|---|---|
committer | Alexandru Fazakas <alex.fazakas97@gmail.com> | 2018-07-30 17:16:11 +0300 |
commit | e6bf1ad66ae07a5c6dbe41c20108891f3913432a (patch) | |
tree | e37e68d9692029e8f9648daa3cdd672ca2336225 /src | |
parent | 23ecabd71ee6c4e7f06787756bf6dc8c04f6b60a (diff) | |
download | nautilus-e6bf1ad66ae07a5c6dbe41c20108891f3913432a.tar.gz |
file-operations: Fix undo copy criticals
This is a follow-up to commit e9f039e1 which fixes all introduced
criticals and sets the undo information properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-file-operations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c index 801f2a8f0..589602cbb 100644 --- a/src/nautilus-file-operations.c +++ b/src/nautilus-file-operations.c @@ -5781,7 +5781,7 @@ nautilus_file_operations_copy (GTask *task, /* In the case of duplicate, the undo_info is already set, so we don't want to * overwrite it wrongfully. */ - if (job->common.undo_info != NULL) + if (job->common.undo_info == NULL) { job->common.undo_info = nautilus_file_undo_info_ext_new (NAUTILUS_FILE_UNDO_OP_COPY, g_list_length (job->files), |