/[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 285 by twoaday, Tue May 30 15:31:49 2006 UTC revision 286 by twoaday, Fri Mar 9 19:34:17 2007 UTC
# Line 1  Line 1 
1  /* wptClipImportDlg.cpp - WinPT key import dialog  /* wptClipImportDlg.cpp - WinPT key import dialog
2   *      Copyright (C) 2001-2006 Timo Schulz   *      Copyright (C) 2001-2007 Timo Schulz
3   *      Copyright (C) 2005 g10 Code GmbH   *      Copyright (C) 2005 g10 Code GmbH
4   *   *
5   * This file is part of WinPT.   * This file is part of WinPT.
# Line 13  Line 13 
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.   * GNU General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
16   */   */
17  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
18  #include <config.h>  #include <config.h>
# Line 45  int Line 41  int
41  print_import_status (gpgme_import_result_t res)  print_import_status (gpgme_import_result_t res)
42  {  {
43      gpgme_import_status_t st;      gpgme_import_status_t st;
     const char *keyid;  
44      int new_keys = res->considered - res->unchanged;      int new_keys = res->considered - res->unchanged;
45    
46      dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,      dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_IMPORT_STAT, glob_hwnd,
# Line 55  print_import_status (gpgme_import_result Line 50  print_import_status (gpgme_import_result
50          for (st=res->imports; st; st=st->next) {          for (st=res->imports; st; st=st->next) {
51              if (st->status == 0) /* nothing changed */              if (st->status == 0) /* nothing changed */
52                  continue;                  continue;
53              keyid = get_keyid_from_fpr (st->fpr);              keycache_update (0, st->fpr);
             keycache_update (0, keyid);  
54          }          }
55      }      }
56      return !(res->unchanged == res->considered);      return !(res->unchanged == res->considered);

Legend:
Removed from v.285  
changed lines
  Added in v.286

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26