From: Frederic Cervenansky Date: Thu, 9 Jun 2011 08:14:54 +0000 (+0000) Subject: clear files and directory X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=69b17c9a4db1eacaf9e8ddad61154e32bd8cee21;p=creaImageIO.git clear files and directory --- diff --git a/src/creaImageIOWxSimpleDlg.cpp b/src/creaImageIOWxSimpleDlg.cpp index 072e9e7..4b98476 100644 --- a/src/creaImageIOWxSimpleDlg.cpp +++ b/src/creaImageIOWxSimpleDlg.cpp @@ -51,7 +51,7 @@ namespace creaImageIO fileDlg->GetPaths(wxArray); if(wxArray.size() >0) { - + m_results.clear(); infoimage=_T("FILE(s):")+wxArray[0]; std::vector 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; } + + }