]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/filedlg.cpp
VC6 compilation fix for native wxProgressDialog implementation.
[wxWidgets.git] / src / gtk / filedlg.cpp
index 3e63c532434a725617a0d6d6dd037cd9d57f6fac..cff12d8f6fb3ea14e8bc8abb5500b5a9331d2266 100644 (file)
@@ -173,7 +173,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
                            const wxString& name)
     : wxFileDialogBase()
 {
-    parent = GetParentForModalDialog(parent);
+    parent = GetParentForModalDialog(parent, style);
 
     if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFileName,
                                   wildCard, style, pos, sz, name))
@@ -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);
 }