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).
This commit is contained in:
Alexander Larsson 2012-08-20 17:06:14 +02:00
parent 78107b1a7d
commit 6b7eaf86ed

View File

@ -657,6 +657,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
FALSE, FALSE, 0); FALSE, FALSE, 0);
password_save = g_mount_operation_get_password_save (G_MOUNT_OPERATION (operation)); 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")); choice = gtk_radio_button_new_with_mnemonic (NULL, _("Forget password _immediately"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (choice), gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (choice),