Applied patch for generic file dialog Show()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-03-01 22:54:20 +00:00
parent 055e633de6
commit 16dce3b37b
2 changed files with 13 additions and 0 deletions

View 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 );