[file-roller: 39/123] paste files: reload the archive only if the operation was successful



commit b1892e4fb94bef47f98d626383c86e687f33ee01
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jul 21 00:25:12 2012 +0200

    paste files: reload the archive only if the operation was successful

 src/fr-window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 11de656..42d21af 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -8058,8 +8058,6 @@ _paste_from_archive_operation_completed (FrWindow *window,
 	if (error != NULL) {
 		fr_clipboard_data_unref (window->priv->clipboard_data);
 		window->priv->clipboard_data = NULL;
-
-		fr_window_archive_reload (window);
 	}
 }
 
@@ -8078,6 +8076,9 @@ paste_from_archive_paste_clipboard_ready_cb (GObject      *source_object,
 	fr_clipboard_data_unref (window->priv->clipboard_data);
 	window->priv->clipboard_data = NULL;
 
+	if (error == NULL)
+		fr_window_archive_reload (window);
+
 	_g_error_free (error);
 }
 



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