summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-23 01:37:55 +0100
committerPablo Barciela <[email protected]>2019-03-24 10:40:01 +0100
commit3033b7cb2185d5733d4379f1be4f912cfb33768f (patch)
tree569cd6a442bc49b3a1b4f82e0f721de8a2917720
parent117eb8f77d01a3cbacba7ed0bb54273765141ad8 (diff)
downloadcaja-3033b7cb2185d5733d4379f1be4f912cfb33768f.tar.bz2
caja-3033b7cb2185d5733d4379f1be4f912cfb33768f.tar.xz
caja-file: Fix incomplete file replacement dialog
Fixes https://github.com/mate-desktop/caja/issues/1183
-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 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