Skip to content
Permalink
Browse files

connect-server-dialog: Respect password save setting

The "Remember this password" checkbox was not respected
when password was specified and connection succeeded
for the first time.

https://bugzilla.gnome.org/show_bug.cgi?id=641376
Adapted from https://gitlab.gnome.org/GNOME/nautilus/commit/571a6ef7
  • Loading branch information...
tbzatek authored and lukefromdc committed Apr 15, 2011
1 parent bc0b2cb commit ae033ba522d6f3f3047e3886b4567464babab3a0
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/caja-connect-server-dialog.c
@@ -1227,6 +1227,12 @@ caja_connect_server_dialog_fill_details_async (CajaConnectServerDialog *self,
g_mount_operation_set_password (G_MOUNT_OPERATION (operation),
str);
set_flags ^= G_ASK_PASSWORD_NEED_PASSWORD;

if (flags & G_ASK_PASSWORD_SAVING_SUPPORTED &&
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->details->remember_checkbox))) {
g_mount_operation_set_password_save (G_MOUNT_OPERATION (operation),
G_PASSWORD_SAVE_PERMANENTLY);
}

self->details->last_password_set = TRUE;
}

0 comments on commit ae033ba

Please sign in to comment.
You can’t perform that action at this time.