From b534aeb219614dad55bf9a63c49be0da0552038b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 May 2010 12:07:54 +0000 Subject: [PATCH] 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 --- src/gtk/filedlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 278950e6ab..cff12d8f6f 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -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); } -- 2.45.2