From 3033b7cb2185d5733d4379f1be4f912cfb33768f Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 23 Mar 2019 01:37:55 +0100 Subject: caja-file: Fix incomplete file replacement dialog Fixes https://github.com/mate-desktop/caja/issues/1183 --- libcaja-private/caja-file.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 23e619f1..a1d82d3e 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -8324,16 +8324,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 -- cgit v1.2.1