summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
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