]> Creatis software - creaImageIO.git/commitdiff
clear files and directory
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 08:14:54 +0000 (08:14 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 08:14:54 +0000 (08:14 +0000)
src/creaImageIOWxSimpleDlg.cpp

index 072e9e796a7a844a10e0a3bf9fbded8bdd559edb..4b98476c3d93103fdc6b81f392784c8cf4db2ad9 100644 (file)
@@ -51,7 +51,7 @@ namespace creaImageIO
                                fileDlg->GetPaths(wxArray);
                                if(wxArray.size() >0)
                                {
-
+                                       m_results.clear();
                                        infoimage=_T("FILE(s):")+wxArray[0];
                                        std::vector<std::string> files;
                                        for( int i = 0; i < wxArray.GetCount(); i++)
@@ -84,6 +84,7 @@ namespace creaImageIO
                 resultShowModal = dirDlg->ShowModal();
                 if ( resultShowModal==wxID_OK )
                 {  
+                        m_results.clear();
                        infoimage=_T("DIRECTORY:")+dirDlg->GetPath();
                        if(! m_view.readDirectory(crea::wx2std(dirDlg->GetPath()),m_results))
                        {
@@ -154,5 +155,7 @@ namespace creaImageIO
          {
                  return m_results;
          }
+
+         
 }