[file-roller: 118/123] libarchive: fixed progress when deleting
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller: 118/123] libarchive: fixed progress when deleting
- Date: Mon, 6 Aug 2012 13:50:47 +0000 (UTC)
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]