54 |
SetWindowText (dlg, _("GnuPG Configuration File" )); |
SetWindowText (dlg, _("GnuPG Configuration File" )); |
55 |
SetDlgItemText (dlg, IDC_GPGOPT_SAVE, _("&Save")); |
SetDlgItemText (dlg, IDC_GPGOPT_SAVE, _("&Save")); |
56 |
SetDlgItemText (dlg, IDC_GPGOPT_LOAD, _("&Load")); |
SetDlgItemText (dlg, IDC_GPGOPT_LOAD, _("&Load")); |
57 |
|
SetDlgItemText (dlg, IDCANCEL, _("&Exit")); |
58 |
free_if_alloc (optbuf); |
free_if_alloc (optbuf); |
59 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |
60 |
return TRUE; |
return TRUE; |
72 |
return FALSE; |
return FALSE; |
73 |
} |
} |
74 |
optbuf[nbytes] = '\0'; |
optbuf[nbytes] = '\0'; |
75 |
if( check_gnupg_options( optbuf ) ) { |
if( check_gnupg_options( optbuf, 1 ) ) { |
76 |
msg_box( dlg, _("File contains invalid GnuPG keywords!"), _("GPG Config"), MB_ERR ); |
msg_box( dlg, _("File contains invalid GnuPG keywords!"), _("GPG Config"), MB_ERR ); |
77 |
free_if_alloc( optbuf ); |
free_if_alloc( optbuf ); |
78 |
return FALSE; |
return FALSE; |