690 |
} |
} |
691 |
} |
} |
692 |
else { |
else { |
693 |
gpg_keycache_t c; |
gpg_keycache_t c, sec_c; |
694 |
update_keycache (hwnd); |
update_keycache (hwnd); |
695 |
c = keycache_get_ctx (1); |
c = keycache_get_ctx (1); |
696 |
if (!c || !gpg_keycache_get_size (c)) { |
if (!c || !gpg_keycache_get_size (c)) { |
712 |
return 0; |
return 0; |
713 |
} |
} |
714 |
} |
} |
715 |
if (check_default_key (c)) { |
sec_c = keycache_get_ctx (0); |
716 |
|
if (check_default_key (sec_c)) { |
717 |
char *p = get_gnupg_default_key (); |
char *p = get_gnupg_default_key (); |
718 |
log_box (_("WinPT Error"), MB_ERR, |
log_box (_("WinPT Error"), MB_ERR, |
719 |
_("Default key from the GPG options file could not be found.\n" |
_("Default key (from the GPG config file) could not be found.\n" |
720 |
"Please check your gpg.conf (options) to correct this:\n\n" |
"Please check your gpg.conf or set a new default key to correct it:\n\n" |
721 |
"%s: public key not found."), p? p : "[null]"); |
"%s: public key not found."), p? p : "[null]"); |
722 |
free_if_alloc (p); |
free_if_alloc (p); |
723 |
DestroyWindow (hwnd); |
DestroyWindow (hwnd); |