]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
concentrating content and structure region calculations
[wxWidgets.git] / src / generic / filedlgg.cpp
index 8c44509055be39697098f0f1934c09013cf967c5..83c51c893efc9b138dc180f3ebfd02d1be2c92e8 100644 (file)
@@ -1059,6 +1059,18 @@ int wxGenericFileDialog::ShowModal()
     return wxDialog::ShowModal();
 }
 
+bool wxGenericFileDialog::Show( bool show )
+{
+    if (show)
+    {
+        m_list->GoToDir(m_dir);
+        UpdateControls();
+        m_text->SetValue(m_fileName);
+    }
+
+    return wxDialog::Show( show );
+}
+
 void wxGenericFileDialog::DoSetFilterIndex(int filterindex)
 {
     wxString *str = (wxString*) m_choice->GetClientData( filterindex );