summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 15:59:33 +0100
committerinfirit <[email protected]>2014-11-22 20:25:30 +0100
commit0b3b7eef61287213308e14639444e1953b52ac04 (patch)
tree0088fe3ec30ef7bd816695b42f7f4c75b3254418 /src/fr-command-tar.c
parent426e0a1e83957fd1b351a2828e667e1b7746f776 (diff)
downloadengrampa-0b3b7eef61287213308e14639444e1953b52ac04.tar.bz2
engrampa-0b3b7eef61287213308e14639444e1953b52ac04.tar.xz
allow the user to cancel addition and deletion of files
Based on FR commit: 815ad36da74abdc9e4948500af402e3f7d67e3ba From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 27deafa..ed63edb 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -866,11 +866,7 @@ fr_command_tar_uncompress (FrCommand *comm)
c_tar->uncomp_filename = NULL;
}
- {
- char *uri = g_filename_to_uri (comm->filename, NULL, NULL);
- archive_exists = uri_exists (uri);
- g_free (uri);
- }
+ archive_exists = ! comm->creating_archive;
c_tar->name_modified = ! is_mime_type (comm->mime_type, "application/x-tar");
if (c_tar->name_modified) {