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

Diff of /trunk/Src/wptKeyManagerDlg.cpp

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

revision 146 by twoaday, Thu Jan 12 16:28:06 2006 UTC revision 147 by twoaday, Fri Jan 13 14:21:16 2006 UTC
# Line 1015  translate_popupmenu_strings (HMENU popup Line 1015  translate_popupmenu_strings (HMENU popup
1015  }  }
1016    
1017    
1018    /* Add all recently updated keys in the cache to the list. */
1019    static void
1020    refresh_keylist (listview_ctrl_t lv)
1021    {
1022        struct keycache_s *ctx;
1023        gpg_keycache_t kc;
1024    
1025        kc = keycache_get_ctx (1);
1026        while (!gpg_keycache_next_updated_key (kc, &ctx)) {
1027            keylist_add_key (lv, KEYLIST_LIST, ctx->key);
1028            /*msg_box (NULL, ctx->key->uids->name, "debug", MB_OK);*/
1029        }
1030        keylist_sort (lv, KEY_SORT_USERID);
1031    }
1032    
1033    
1034  /* Dialog box procedure for the Key Manager. */  /* Dialog box procedure for the Key Manager. */
1035  BOOL CALLBACK  BOOL CALLBACK
# Line 1555  keymanager_dlg_proc (HWND dlg, UINT msg, Line 1570  keymanager_dlg_proc (HWND dlg, UINT msg,
1570              return TRUE;              return TRUE;
1571                            
1572          case ID_KEYMISC_SENDRECV:          case ID_KEYMISC_SENDRECV:
             memset (&genkey, 0, sizeof (genkey));  
1573              dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_KEYSERVER, dlg,              dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_KEYSERVER, dlg,
1574                                keyserver_dlg_proc, (LPARAM)&genkey, _("Keyserver Access"),                                keyserver_dlg_proc, 0, _("Keyserver Access"),
1575                                IDS_WINPT_KEYSERVER);                                IDS_WINPT_KEYSERVER);
1576              if (genkey.newkey != NULL) {              refresh_keylist (kmi->lv);
                 keylist_add_key (kmi->lv, KEYLIST_LIST, genkey.newkey);  
                 keylist_sort (kmi->lv, KEY_SORT_USERID);  
             }  
1577              return TRUE;              return TRUE;
1578                            
1579          case ID_KEYMISC_GPGPREFS:          case ID_KEYMISC_GPGPREFS:

Legend:
Removed from v.146  
changed lines
  Added in v.147

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26