From de86b2c1152e6932fd8d846702aa5a72b81ded5c Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 5 Feb 2016 11:03:41 +0100 Subject: [PATCH] #2816 BBTK Bug New Normal - std FilesFromDirectory box not clean the list for the second execution --- packages/std/src/bbstdFilesFromDirectory.cxx | 1 + packages/wx/src/bbwxComboBox.cxx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/std/src/bbstdFilesFromDirectory.cxx b/packages/std/src/bbstdFilesFromDirectory.cxx index b40f1fb..fc271c2 100644 --- a/packages/std/src/bbstdFilesFromDirectory.cxx +++ b/packages/std/src/bbstdFilesFromDirectory.cxx @@ -100,6 +100,7 @@ std::string FilesFromDirectory::NormalizePath(std::string const &pathname) */ int FilesFromDirectory::Explore(std::string const &dirpath, bool recursive) { + Filenames.clear(); int numberOfFiles = 0; std::string fileName; std::string dirName = NormalizePath(dirpath); diff --git a/packages/wx/src/bbwxComboBox.cxx b/packages/wx/src/bbwxComboBox.cxx index 234a0e6..e270639 100644 --- a/packages/wx/src/bbwxComboBox.cxx +++ b/packages/wx/src/bbwxComboBox.cxx @@ -142,10 +142,12 @@ namespace bbwx if (mTypeForm==1) { wxlistbox->Clear(); + for (i=0;iAppend( bbtk::std2wx( lstIn[i] ) ); } // for i + wxlistbox->SetSelection(iSelection); } else { wxchoice->Clear(); -- 2.47.1