[file-roller: 45/123] fixed loading of multi volume archives



commit 1ec2cf1b7f512b52773b82d22f73d175e3879005
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jul 21 09:23:14 2012 +0200

    fixed loading of multi volume archives

 src/fr-command.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-command.c b/src/fr-command.c
index 8308785..aa1976d 100644
--- a/src/fr-command.c
+++ b/src/fr-command.c
@@ -3373,8 +3373,10 @@ archive_file_changed_cb (GObject    *object,
 	FrCommand *self = user_data;
 	GFile     *file;
 
-	/* FIXME: if multi_volume... */
-	if (FR_ARCHIVE (self)->multi_volume)
+	/* we cannot change the local copy if the archive is a multi-volume and
+	 * stored on a remote location, to do that we should copy all the
+	 * remote parts to a local temporary directory. */
+	if (FR_ARCHIVE (self)->multi_volume && self->priv->is_remote)
 		return;
 
 	if ((self->priv->local_copy != NULL) && self->priv->is_remote) {



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