summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-connect-server-dialog.c6
1 files changed, 6 insertions, 0 deletions
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;
}