/[winpt]/trunk/Src/WinPT.cpp
ViewVC logotype

Diff of /trunk/Src/WinPT.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 172 by twoaday, Mon Jan 30 13:47:35 2006 UTC revision 174 by twoaday, Thu Feb 2 08:20:50 2006 UTC
# Line 690  start: Line 690  start:
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)) {
# Line 712  start: Line 712  start:
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);

Legend:
Removed from v.172  
changed lines
  Added in v.174

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26