Set wild card in the base class too in wxGTK wxFileDialog.

Calling wxFileDialogBase::SetWildcard() ensures that GetWildcard() returns the
correct value after wxFileDialog::SetWildcard() was called.

The new code will also work correctly if we change SetWildcard() to handle
empty wildcard as the default one (see #12079).

Closes #12080.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-22 12:07:54 +00:00
parent 119629aa5d
commit b534aeb219

View File

@@ -433,12 +433,12 @@ wxString wxFileDialog::GetFilename() const
void wxFileDialog::SetWildcard(const wxString& wildCard)
{
m_fc.SetWildcard( wildCard );
wxFileDialogBase::SetWildcard(wildCard);
m_fc.SetWildcard( GetWildcard() );
}
void wxFileDialog::SetFilterIndex(int filterIndex)
{
m_fc.SetFilterIndex( filterIndex);
}