X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..c9ed413ab4f5673ffff00198dc6ce1397398bda4:/src/osx/carbon/dirdlg.cpp?ds=sidebyside diff --git a/src/osx/carbon/dirdlg.cpp b/src/osx/carbon/dirdlg.cpp index c653e17e20..1d3c058597 100644 --- a/src/osx/carbon/dirdlg.cpp +++ b/src/osx/carbon/dirdlg.cpp @@ -18,7 +18,6 @@ #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/dialog.h" - #include "wx/cmndata.h" #endif // WX_PRECOMP #include "wx/filename.h" @@ -88,7 +87,9 @@ int wxDirDialog::ShowModal() err = NavCreateChooseFolderDialog(&options, sStandardNavEventFilter , NULL, this , &dialog); if (err == noErr) { + wxDialog::OSXBeginModalDialog(); err = NavDialogRun(dialog); + wxDialog::OSXEndModalDialog(); if ( err == noErr ) { err = NavDialogGetReply(dialog, &reply);