[file-roller: 118/123] libarchive: fixed progress when deleting



commit ca65658870b5672fddba631ef3bca4376789cad1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Aug 6 13:27:00 2012 +0200

    libarchive: fixed progress when deleting
    
    removed call to fr_archive_progress_inc_completed_bytes, it is
    already called in save_archive_thread

 src/fr-archive-libarchive.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
index 41a05a5..da3f3c2 100644
--- a/src/fr-archive-libarchive.c
+++ b/src/fr-archive-libarchive.c
@@ -1445,9 +1445,8 @@ _remove_files_entry_action (SaveData             *save_data,
 	if (g_hash_table_lookup (remove_data->files_to_remove, pathname)) {
 		action = WRITE_ACTION_SKIP_ENTRY;
 		remove_data->n_files_to_remove--;
-		g_hash_table_remove (remove_data->files_to_remove, pathname);
-		fr_archive_progress_inc_completed_bytes (load_data->archive, archive_entry_size (w_entry));
 		fr_archive_progress_inc_completed_files (load_data->archive, 1);
+		g_hash_table_remove (remove_data->files_to_remove, pathname);
 	}
 
 	return action;



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