X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd9f3519cf4d3adec765a932a726e2f1d34e0df9..3e1924dd5f5744c3e2a8973de9b3e4f372b7fd85:/src/generic/dirdlgg.cpp?ds=sidebyside diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index 5b7b50b2c3..f3a8fd5a5c 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -33,6 +33,7 @@ #include "wx/dirctrl.h" #include "wx/generic/dirdlgg.h" #include "wx/artprov.h" +#include "wx/menu.h" // ---------------------------------------------------------------------------- // constants @@ -78,6 +79,8 @@ bool wxGenericDirDialog::Create(wxWindow* parent, { wxBusyCursor cursor; + parent = GetParentForModalDialog(parent); + if (!wxDirDialogBase::Create(parent, title, defaultPath, style, pos, sz, name)) return false;