From ae033ba522d6f3f3047e3886b4567464babab3a0 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 15 Apr 2011 20:51:17 +0200 Subject: 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 --- src/caja-connect-server-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/caja-connect-server-dialog.c') diff --git a/src/caja-connect-server-dialog.c b/src/caja-connect-server-dialog.c index aa1ff1c1..4cd9f5db 100644 --- a/src/caja-connect-server-dialog.c +++ b/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; } -- cgit v1.2.1