Applied patch [ 1487942 ] Fixed bug in generic file selection dialog box

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-05-23 10:33:58 +00:00
parent 0706e7487f
commit 957eca2f20

View File

@ -1333,13 +1333,21 @@ void wxGenericFileDialog::OnSelected( wxListEvent &event )
// No double-click on most WinCE devices, so do action immediately.
HandleAction( filename );
#else
if (filename == wxT("..")) return;
if (filename == wxT(".."))
{
inSelected = false;
return;
}
wxString dir = m_list->GetDir();
if (!IsTopMostDir(dir))
dir += wxFILE_SEP_PATH;
dir += filename;
if (wxDirExists(dir)) return;
if (wxDirExists(dir))
{
inSelected = false;
return;
}
ignoreChanges = true;
m_text->SetValue( filename );