[file-roller: 32/123] reset the cancellable if is has been cancelled



commit d4201ba0ff1caff795a0974967a934604c99ba74
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 20 22:59:56 2012 +0200

    reset the cancellable if is has been cancelled

 src/fr-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 00735cc..0e35c85 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2876,6 +2876,9 @@ _handle_archive_operation_error (FrWindow  *window,
 	if (error == NULL)
 		return;
 
+	if ((error != NULL) && (error->code == FR_ERROR_STOPPED))
+		g_cancellable_reset (window->priv->cancellable);
+
 	switch (error->code) {
 	case FR_ERROR_ASK_PASSWORD:
 		close_progress_dialog (window, TRUE);



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