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

Diff of /trunk/Src/wptKeyCacheDlg.cpp

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

revision 149 by twoaday, Fri Nov 18 07:20:40 2005 UTC revision 150 by twoaday, Wed Jan 18 11:52:45 2006 UTC
# Line 1  Line 1 
1  /* wptKeyCacheDlg.cpp - Key caching dialog  /* wptKeyCacheDlg.cpp - Key caching dialog
2   *      Copyright (C) 2000-2005 Timo Schulz   *      Copyright (C) 2000-2006 Timo Schulz
3   *      Copyright (C) 2005 g10 Code GmbH   *      Copyright (C) 2005, 2006 g10 Code GmbH
4   *   *
5   * This file is part of WinPT.   * This file is part of WinPT.
6   *   *
# Line 18  Line 18 
18   * along with WinPT; if not, write to the Free Software Foundation,   * along with WinPT; if not, write to the Free Software Foundation,
19   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20   */   */
   
21  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
22  #include <config.h>  #include <config.h>
23  #endif  #endif
# Line 39  BOOL CALLBACK Line 38  BOOL CALLBACK
38  keycache_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)  keycache_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
39  {  {
40      gpgme_error_t err;      gpgme_error_t err;
41      refresh_cache_s * rcs;      refresh_cache_s *rcs;
42      char * pubring = NULL, * secring = NULL;      char *pubring = NULL;
43        char *secring = NULL;
44            
45      switch( msg ) {      switch( msg ) {
46      case WM_INITDIALOG:      case WM_INITDIALOG:
# Line 64  keycache_dlg_proc (HWND dlg, UINT msg, W Line 64  keycache_dlg_proc (HWND dlg, UINT msg, W
64          if (rcs->tr_update)          if (rcs->tr_update)
65              gpg_rebuild_cache (NULL);              gpg_rebuild_cache (NULL);
66          if (rcs->kr_update) {          if (rcs->kr_update) {
             keycache_set_reload (rcs->kr_reload);  
67              err = keycache_init (pubring, secring);              err = keycache_init (pubring, secring);
68              if (err)              if (err)
69                  msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR);                  msg_box (dlg, gpgme_strerror (err), _("Key Cache"), MB_ERR);

Legend:
Removed from v.149  
changed lines
  Added in v.150

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26