]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
leave only wxString overloads for of the functions working with string keys; remove...
[wxWidgets.git] / src / generic / filedlgg.cpp
index 2f493b2e322b56a54eb81a9e246623a360e83bea..90c086fd97e4a40c1b74242806aead8cbe5eeb69 100644 (file)
@@ -996,6 +996,8 @@ bool wxGenericFileDialog::Create( wxWindow *parent,
 {
     m_bypassGenericImpl = bypassGenericImpl;
 
 {
     m_bypassGenericImpl = bypassGenericImpl;
 
+    parent = GetParentForModalDialog(parent);
+
     if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFile,
                                   wildCard, style, pos, sz, name))
     {
     if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFile,
                                   wildCard, style, pos, sz, name))
     {