[gtk+] GtkMountOperation: Return the right password_save



commit 6b7eaf86ed0a16fe1b5bf42a07159d7955cdeb49
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Aug 20 17:06:14 2012 +0200

    GtkMountOperation: Return the right password_save
    
    If the buttons were never sent we returned the wrong
    default value (i.e. not what the UI displayed).

 gtk/gtkmountoperation.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 6fde8e8..9b1d544 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -657,6 +657,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
                           FALSE, FALSE, 0);
 
       password_save = g_mount_operation_get_password_save (G_MOUNT_OPERATION (operation));
+      priv->password_save = password_save;
       
       choice = gtk_radio_button_new_with_mnemonic (NULL, _("Forget password _immediately"));
       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (choice),



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