summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-23 01:37:55 +0100
committerlukefromdc <[email protected]>2019-03-24 04:45:19 +0000
commit6372de7b274c855e9e2a7835326255b5c23d8d07 (patch)
tree3612a52818b288c2cf7160197e947269be86480c /libcaja-private/caja-file.c
parentcd18ffe0df626dce052361c9f82bd8487ddc1879 (diff)
downloadcaja-6372de7b274c855e9e2a7835326255b5c23d8d07.tar.bz2
caja-6372de7b274c855e9e2a7835326255b5c23d8d07.tar.xz
caja-file: Fix incomplete file replacement dialog
Fixes https://github.com/mate-desktop/caja/issues/1183
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r--libcaja-private/caja-file.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 182484f0..1fcf00fb 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -8322,16 +8322,12 @@ caja_file_list_call_when_ready (GList *file_list,
/* Need to do this here, as the list can be modified by this call */
l = l->next;
- caja_file_call_when_ready (file,
- attributes,
- file_list_file_ready_callback,
- data);
-
- data = file_list_ready_data_new
- (file_list, callback, callback_data);
+ if (file)
+ caja_file_call_when_ready (file,
+ attributes,
+ file_list_file_ready_callback,
+ data);
}
-
- file_list_ready_data_free (data);
}
void