/[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 332 by twoaday, Fri Sep 25 16:07:38 2009 UTC revision 333 by twoaday, Tue Oct 13 10:51:21 2009 UTC
# Line 729  fm_check_file_type (listview_ctrl_t lv, Line 729  fm_check_file_type (listview_ctrl_t lv,
729            
730      switch (fm_cmd) {      switch (fm_cmd) {
731      case FM_ENCRYPT:      case FM_ENCRYPT:
     case FM_ENCRYPT_DIR:  
732      case FM_SIGNENCRYPT:        case FM_SIGNENCRYPT:  
733          if (strcmp (status, "ENCRYPTED")          if (strcmp (status, "ENCRYPTED")
734              && strcmp (status, "SYMKEYENC"))              && strcmp (status, "SYMKEYENC"))
# Line 792  fm_set_status (listview_ctrl_t lv, int p Line 791  fm_set_status (listview_ctrl_t lv, int p
791    
792      switch (fm_cmd) {      switch (fm_cmd) {
793      case FM_ENCRYPT:      case FM_ENCRYPT:
     case FM_ENCRYPT_DIR:  
794      case FM_SIGNENCRYPT:      case FM_SIGNENCRYPT:
795          strcpy (status, "ENCRYPTED");          strcpy (status, "ENCRYPTED");
796          break;          break;
# Line 909  fm_parse_files (listview_ctrl_t lv, HWND Line 907  fm_parse_files (listview_ctrl_t lv, HWND
907      }      }
908            
909      /* Commands we need before we can perform the main command */      /* Commands we need before we can perform the main command */
910      switch (fm_cmd) {      switch (fm_cmd) {    
     case FM_ENCRYPT_ZIP:  
911      case FM_ENCRYPT:      case FM_ENCRYPT:
912      case FM_SIGNENCRYPT:      case FM_SIGNENCRYPT:
913          if (fm_cmd == FM_SIGNENCRYPT)          if (fm_cmd == FM_SIGNENCRYPT)
# Line 954  fm_parse_files (listview_ctrl_t lv, HWND Line 951  fm_parse_files (listview_ctrl_t lv, HWND
951              log_box (_("File Manager"), MB_ERR,              log_box (_("File Manager"), MB_ERR,
952                       _("\"%s\" does not exist"), fname);                       _("\"%s\" does not exist"), fname);
953              continue;              continue;
954          }          }      
         if (is_directory (fname))  
             fm_cmd = FM_ENCRYPT_DIR;          
955          if (!fm_check_file_type (lv, i, fm_cmd))          if (!fm_check_file_type (lv, i, fm_cmd))
956              continue;              continue;
957          sig_detached = fm_check_detached_sig (lv, i);          sig_detached = fm_check_detached_sig (lv, i);

Legend:
Removed from v.332  
changed lines
  Added in v.333

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26