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

Diff of /trunk/Src/wptFileManager.cpp

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

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 4 by twoaday, Sun Feb 6 11:11:40 2005 UTC
# Line 581  fm_check_file_type (listview_ctrl_t lv, Line 581  fm_check_file_type (listview_ctrl_t lv,
581      case FM_ENCRYPT:      case FM_ENCRYPT:
582      case FM_ENCRYPT_DIR:      case FM_ENCRYPT_DIR:
583      case FM_SIGNENCRYPT:        case FM_SIGNENCRYPT:  
584          if (strcmp (status, "ENCRYPTED"))          if (strcmp (status, "ENCRYPTED")
585                && strcmp (status, "SYMKEYENC"))
586              rc = 1;              rc = 1;
587          break;          break;
588                    
# Line 726  fm_parse_files (listview_ctrl_t lv, HWND Line 727  fm_parse_files (listview_ctrl_t lv, HWND
727      ctx->dlg = dlg;      ctx->dlg = dlg;
728            
729      memset (&pfx, 0, sizeof (pfx));      memset (&pfx, 0, sizeof (pfx));
730        pfx.hwnd = dlg;
731      gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx);      gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx);
732            
733      /* Commands we need before we can perform the main command */      /* Commands we need before we can perform the main command */
# Line 761  fm_parse_files (listview_ctrl_t lv, HWND Line 763  fm_parse_files (listview_ctrl_t lv, HWND
763          if( !listview_get_item_state( lv, i ) )          if( !listview_get_item_state( lv, i ) )
764              continue;              continue;
765          listview_get_item_text( lv, i, 0, status, sizeof (status) -1 );          listview_get_item_text( lv, i, 0, status, sizeof (status) -1 );
766          if( !strcmp( status, "ENCRYPTED" ) && fm_cmd == FM_DECRYPT )          if (!strcmp( status, "ENCRYPTED" ) && fm_cmd == FM_DECRYPT)
767              n++;              n++;
768          if( !strcmp( status, "UNKNOWN" ) && fm_cmd == FM_SIGN )          if (!strcmp( status, "UNKNOWN" ) && fm_cmd == FM_SIGN)
769              n++;              n++;
770          if (fm_cmd == FM_WIPE) {          if (fm_cmd == FM_WIPE) {
771              if (!confirm.rset)              if (!confirm.rset)
# Line 774  fm_parse_files (listview_ctrl_t lv, HWND Line 776  fm_parse_files (listview_ctrl_t lv, HWND
776          }          }
777      }      }
778            
779      if( n > 1 )      if (n > 1 && fm_cmd != FM_SYMENC)
780          ctx->cache_cb = 1;          ctx->cache_cb = 1;
781    
782      if( fm_cmd == FM_WIPE && ndel > 0 ) {      if (fm_cmd == FM_WIPE && ndel > 0) {
783          DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_FILES_SECDEL, ctx->dlg,          DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_FILES_SECDEL, ctx->dlg,
784                              file_secdel_confirm_dlg_proc, (LPARAM)&confirm);                              file_secdel_confirm_dlg_proc, (LPARAM)&confirm);
785          if (!confirm.yes)          if (!confirm.yes)

Legend:
Removed from v.2  
changed lines
  Added in v.4

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26