OSDN Git Service

微修正。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 14 Nov 2009 03:28:10 +0000 (03:28 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 14 Nov 2009 03:28:10 +0000 (03:28 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@103 9df91469-1e22-0410-86e7-ea8537beb833

src/frontend/frm_main.cpp

index d481bba..561e77b 100644 (file)
@@ -761,12 +761,10 @@ void MainFrame::OnArcDelete(wxCommandEvent& e)
 
        // \8ae\8eí\90Ý\92è\81B
        TPI_SWITCHES swInfo;
-       wxArrayString files = MakeTargetFileList(this, false);
-
        ProcessDialog procDlg;
        procDlg.InitDialog();
        procDlg.Show(true);
-       this->ErrorCheck(this->tpi.Command(TPI_COMMAND_DELETE, & swInfo, this->fnArchive.GetFullPath(), files));
+       this->ErrorCheck(this->tpi.Command(TPI_COMMAND_DELETE, & swInfo, this->fnArchive.GetFullPath(), MakeTargetFileList(this, false)));
        procDlg.Show(false);    
 
        // \8f\91\8cÉ\82ð\8dÄ\93Ç\82Ý\8d\9e\82Ý\82·\82é\81B
@@ -775,14 +773,11 @@ void MainFrame::OnArcDelete(wxCommandEvent& e)
 
 void MainFrame::OnArcTest(wxCommandEvent&)
 {
-       // \8ae\8eí\90Ý\92è\81B
-       wxArrayString files = MakeTargetFileList(this, false);
        TPI_SWITCHES swInfo;
-
        ProcessDialog procDlg;
        procDlg.InitDialog();
        procDlg.Show(true);
-       if (this->ErrorCheck(this->tpi.Command(TPI_COMMAND_TEST, & swInfo, this->fnArchive.GetFullPath(), files)) == TPI_ERROR_SUCCESS)
+       if (this->ErrorCheck(this->tpi.Command(TPI_COMMAND_TEST, & swInfo, this->fnArchive.GetFullPath(), MakeTargetFileList(this, false))) == TPI_ERROR_SUCCESS)
        {
                ::MsgDlg(wxT("This is a correct archive."), & procDlg, wxICON_INFORMATION);
        }
@@ -791,14 +786,11 @@ void MainFrame::OnArcTest(wxCommandEvent&)
 
 void MainFrame::OnArcRepair(wxCommandEvent&)
 {
-       // \8ae\8eí\90Ý\92è\81B
-       wxArrayString files = MakeTargetFileList(this, false);
        TPI_SWITCHES swInfo;
-
        ProcessDialog procDlg;
        procDlg.InitDialog();
        procDlg.Show(true);
-       this->ErrorCheck(this->tpi.Command(TPI_COMMAND_REPAIR, & swInfo, this->fnArchive.GetFullPath(), files));
+       this->ErrorCheck(this->tpi.Command(TPI_COMMAND_REPAIR, & swInfo, this->fnArchive.GetFullPath(), MakeTargetFileList(this, false)));
        procDlg.Show(false);    
 }