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:
parent
0706e7487f
commit
957eca2f20
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user