X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a305cfbc85bedfc59ccb1b6b9619f4aeb790b31..0518029cecf127dc5e792bb3fcd6781d46c0e0b1:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 2f493b2e32..90c086fd97 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -996,6 +996,8 @@ bool wxGenericFileDialog::Create( wxWindow *parent, { m_bypassGenericImpl = bypassGenericImpl; + parent = GetParentForModalDialog(parent); + if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFile, wildCard, style, pos, sz, name)) {