X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd362275b853cc0308bbde6a60bb2525d659f709..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index a2a370d862..96ad05137f 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -49,6 +49,7 @@ #include "wx/filectrl.h" #include "wx/generic/filedlgg.h" #include "wx/debug.h" +#include "wx/modalhook.h" #if wxUSE_TOOLTIPS #include "wx/tooltip.h" @@ -308,6 +309,8 @@ wxBitmapButton* wxGenericFileDialog::AddBitmapButton( wxWindowID winId, int wxGenericFileDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); + if (CreateExtraControl()) { wxSizer *sizer = GetSizer();