From 69b17c9a4db1eacaf9e8ddad61154e32bd8cee21 Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Thu, 9 Jun 2011 08:14:54 +0000 Subject: [PATCH] clear files and directory --- src/creaImageIOWxSimpleDlg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } + + } -- 2.47.1