]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1487942 ] Fixed bug in generic file selection dialog box
authorJulian Smart <julian@anthemion.co.uk>
Tue, 23 May 2006 10:33:58 +0000 (10:33 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 23 May 2006 10:33:58 +0000 (10:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index fe706a28208145aef7903abef0c589e7c65f81ea..6792366e6b65650f2fccefb3de426e48dc22f772 100644 (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 );