150 |
} |
} |
151 |
} |
} |
152 |
else { |
else { |
153 |
char * t = get_gnupg_cfgfile (); |
char *cfg = get_gnupg_cfgfile (); |
154 |
if (t && !file_exist_check (t)) |
if (cfg && !file_exist_check (cfg)) |
155 |
set_reg_entry_gpg( "OptFile", t ); |
set_reg_entry_gpg( "OptFile", cfg); |
156 |
free_if_alloc (t); |
free_if_alloc (cfg); |
157 |
} |
} |
158 |
if ( set_reg_entry_gpg( "HomeDir", homedir ) ) { |
if ( set_reg_entry_gpg( "HomeDir", homedir ) ) { |
159 |
msg_box( dlg, _("Could not save 'HomeDir' in the registry."), _("Preferences"), MB_ERR ); |
msg_box( dlg, _("Could not save 'HomeDir' in the registry."), _("Preferences"), MB_ERR ); |
234 |
break; |
break; |
235 |
|
|
236 |
case IDC_GPGREFS_EXEDLG: |
case IDC_GPGREFS_EXEDLG: |
237 |
const char * bin; |
const char *bin; |
238 |
bin = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG binary"), _("Executable Files (*.exe)\0*.exe\0\0"), NULL ); |
bin = get_fileopen_dlg (dlg, _("Choose GPG binary"), |
239 |
if( bin ) |
_("Executable Files (*.exe)\0*.exe\0\0"), |
240 |
SetDlgItemText( dlg, IDC_GPGPREFS_EXEDIR, bin ); |
NULL); |
241 |
|
if (bin) |
242 |
|
SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, bin); |
243 |
return TRUE; |
return TRUE; |
244 |
|
|
245 |
case IDC_GPGPREFS_OPTDLG: |
case IDC_GPGPREFS_OPTDLG: |
246 |
const char * opt; |
const char *optf; |
247 |
opt = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG config file"), NULL, NULL ); |
optf = get_fileopen_dlg (dlg, _("Choose GPG config file"), |
248 |
if( opt ) |
NULL, NULL); |
249 |
SetDlgItemText (dlg, IDC_GPGPREFS_OPTFILE, opt); |
if (optf) |
250 |
|
SetDlgItemText (dlg, IDC_GPGPREFS_OPTFILE, optf); |
251 |
return TRUE; |
return TRUE; |
252 |
} |
} |
253 |
break; |
break; |