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

Diff of /trunk/Src/wptClipImportDlg.cpp

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

revision 163 by twoaday, Wed Jan 18 11:52:45 2006 UTC revision 164 by twoaday, Fri Jan 20 09:19:15 2006 UTC
# Line 37  Line 37 
37  #include "wptW32API.h"  #include "wptW32API.h"
38  #include "wptVersion.h"  #include "wptVersion.h"
39  #include "wptImport.h"  #include "wptImport.h"
40    #include "wptKeyManager.h"
41    
42    
43  /* Import the PGP key data from the clipboard.  /* Import the PGP key data from the clipboard.
# Line 62  print_import_status (gpgme_import_result Line 63  print_import_status (gpgme_import_result
63  {  {
64      gpgme_import_status_t st;      gpgme_import_status_t st;
65      const char *keyid;      const char *keyid;
66        int new_keys = res->considered - res->unchanged;
67    
68      dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,      dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,
69                        import_status_dlg_proc, (LPARAM)res,                        import_status_dlg_proc, (LPARAM)res,
70                        _("Key Import Statistics"), IDS_WINPT_IMPORT_STAT);                        _("Key Import Statistics"), IDS_WINPT_IMPORT_STAT);
71      if (res->unchanged != res->considered) {      if (new_keys > 0 && new_keys < KM_PRELOAD_KEYS) {
72          for (st=res->imports; st; st=st->next) {          for (st=res->imports; st; st=st->next) {
73              if (st->status == 0) /* nothing changed */              if (st->status == 0) /* nothing changed */
74                  continue;                  continue;
# Line 142  clip_import_dlg_proc (HWND dlg, UINT msg Line 144  clip_import_dlg_proc (HWND dlg, UINT msg
144                  return FALSE;                  return FALSE;
145              }              }
146              res = gpgme_op_import_result (ctx);              res = gpgme_op_import_result (ctx);
147              upd = print_import_status (res);              print_import_status (res);
148                upd = res->considered - res->unchanged;
149              if (res->no_user_id > 0) {                          if (res->no_user_id > 0) {            
150                  msg_box (dlg, _("Key without a self signature was dectected!\n"                  msg_box (dlg, _("Key without a self signature was dectected!\n"
151                                  "(This key is NOT usable for encryption, etc)\n"                                  "(This key is NOT usable for encryption, etc)\n"

Legend:
Removed from v.163  
changed lines
  Added in v.164

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26