diff options
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index 16e7fc6d1b..8da4d0e415 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -279,9 +279,10 @@ request_password (struct _pass_msg *m) } if (m->service_url == NULL || m->service != NULL) { - m->check = gtk_check_button_new_with_mnemonic (m->service_url? _("_Remember this password") : + m->check = gtk_check_button_new_with_mnemonic (m->service_url ? _("_Remember this password") : _("_Remember this password for the remainder of this session")); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m->check), m->config_service->save_passwd); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m->check), + m->config_service ? m->config_service->save_passwd : FALSE); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (password_dialog)->vbox), m->check, TRUE, FALSE, 0); gtk_widget_show (m->check); } |