]> Creatis software - bbtk.git/commitdiff
#3475 ButtonSelectFilesDirectory box wx
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 14 Dec 2021 08:59:52 +0000 (09:59 +0100)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 14 Dec 2021 08:59:52 +0000 (09:59 +0100)
packages/wx/src/bbwxButtonSelectFilesDirectory.cxx

index ad26a755f7f93fb13554c8beddf92af4dcd0929f..87e3acfffb44e1b30a7897a77200fdd0f20a6c1d 100644 (file)
@@ -121,26 +121,17 @@ void ButtonSelectFilesDirectoryWidget:: SelectDirectory()
                mBox->bbSetOutputOut( bbtk::wx2std (FD->GetPath()) );
                mBox->bbSignalOutputModification(std::string("Out"));
                mBox->bbSetInputDefaultDir( bbtk::wx2std (FD->GetPath()) );
-       } else {  
-               mBox->bbSetOutputOut("");
-               mBox->bbSignalOutputModification(std::string("Out"));
-               mBox->bbSetInputDefaultDir("");
-       }
-
+       } // if OK
 }
  
 void ButtonSelectFilesDirectoryWidget::OnButton( wxEvent& )
 {
-  printf("EED ButtonSelectFilesDirectoryWidget::OnButton Start\n");
          if (mBox->bbGetInputType()==0)
          {
                SelectFiles();
          } else if (mBox->bbGetInputType()==1){
                SelectDirectory();
          }
-         
-  printf("EED ButtonSelectFilesDirectoryWidget::OnButton End\n");
-         
 }
 
   //--------------------------------------------------------------------------