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