[file-roller] zip: ask the password again when the user provides the wrong password



commit 9b0ac20428114c45ba4fd8d617344e227fb3f483
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Sep 2 21:14:51 2013 +0200

    zip: ask the password again when the user provides the wrong password
    
    [bug #707114]

 src/fr-command-zip.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 32baf78..21e029a 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -349,9 +349,7 @@ fr_command_zip_handle_error (FrCommand *comm,
        if (error->type == FR_ERROR_NONE)
                return;
 
-       if (error->status <= 1)
-               fr_error_clear_gerror (error);
-       else if ((error->status == 82) || (error->status == 5))
+       if ((error->status == 82) || (error->status == 5))
                fr_error_take_gerror (error, g_error_new_literal (FR_ERROR, FR_ERROR_ASK_PASSWORD, ""));
        else {
                int i;
@@ -371,6 +369,11 @@ fr_command_zip_handle_error (FrCommand *comm,
                                }
                        }
                }
+
+               /* ignore warnings */
+
+               if (error->status <= 1)
+                       fr_error_clear_gerror (error);
        }
 }
 


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