summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fr-archive.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 598d769..abe5dc3 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1147,7 +1147,7 @@ load_local_archive (FrArchive *archive,
FrCommand *tmp_command;
const char *mime_type;
- if (! g_file_query_exists (archive->file, NULL)) {
+ if (! g_file_query_exists (archive->file, archive->priv->cancellable)) {
fr_archive_action_completed (archive,
FR_ACTION_LOADING_ARCHIVE,
FR_PROC_ERROR_GENERIC,
@@ -1254,11 +1254,13 @@ copy_remote_file (FrArchive *archive,
{
XferData *xfer_data;
- if (! g_file_query_exists (archive->file, NULL)) {
+ if (! g_file_query_exists (archive->file, archive->priv->cancellable)) {
GError *error;
+
error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("Archive not found"));
fr_archive_copy_done (archive, FR_ACTION_LOADING_ARCHIVE, error);
g_error_free (error);
+
return;
}