core: Ensure correct file data is synced in non-overwrite case
This commit is contained in:
1 parent
1642310486
commit
bdbf76b6eb
1 file changed
+1
-1
@@ -3180,7 +3180,7 @@ checkout_file_from_input (GFile *file,
|
|||||||
|
|
||||||
if (g_file_info_get_file_type (temp_info) == G_FILE_TYPE_REGULAR)
|
if (g_file_info_get_file_type (temp_info) == G_FILE_TYPE_REGULAR)
|
||||||
{
|
{
|
||||||
if (!ensure_file_data_synced (temp_file, cancellable, error))
|
if (!ensure_file_data_synced (file, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user