[file-roller] use local_copy instead of command->filename to check file existence



commit 77b2f368b8ab02267dc94bb70e7db16f37bbe252
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Jun 18 11:26:30 2012 +0200

    use local_copy instead of command->filename to check file existence
    
    the command->filename == local_copy assumption will not be true
    in the future

 src/fr-archive.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 78704e7..af35396 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1628,7 +1628,7 @@ fr_archive_add (FrArchive     *archive,
 		return;
 	}
 
-	archive->command->creating_archive = ! g_file_test (archive->command->filename, G_FILE_TEST_EXISTS);
+	archive->command->creating_archive = ! g_file_query_exists (archive->local_copy, NULL);
 
 	fr_command_uncompress (archive->command);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]