bugfix: correction of the upper folder in the selection of files

This commit is contained in:
Edouard Dupin 2012-04-29 15:32:52 +02:00
parent bf681fece3
commit f1a10c62c1

View File

@ -586,7 +586,7 @@ void ewol::FileChooser::SetCancelLabel(etk::UString label)
void ewol::FileChooser::SetFolder(etk::UString folder)
{
m_folder = folder;
m_folder = folder + "/";
UpdateCurrentFolder();
}
@ -634,7 +634,7 @@ void ewol::FileChooser::OnReceiveMessage(ewol::EObject * CallerObject, const cha
//==> this is an internal event ...
FileChooserFolderList * myListFolder = EWOL_CAST_WIDGET_FOLDER_LIST(m_widgetListFolder);
etk::UString tmpString = myListFolder->GetSelectedLine();
EWOL_DEBUG(" old PATH : \"" << m_folder << "\" + \"" << tmpString << "\"");
EWOL_ERROR(" old PATH : \"" << m_folder << "\" + \"" << tmpString << "\"");
m_folder = m_folder + tmpString;
char buf[MAX_FILE_NAME];
memset(buf, 0, MAX_FILE_NAME);