#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dialog.h"
- #include "wx/cmndata.h"
#endif // WX_PRECOMP
#include "wx/filename.h"
err = NavCreateChooseFolderDialog(&options, sStandardNavEventFilter , NULL, this , &dialog);
if (err == noErr)
{
+ wxDialog::OSXBeginModalDialog();
err = NavDialogRun(dialog);
+ wxDialog::OSXEndModalDialog();
if ( err == noErr )
{
err = NavDialogGetReply(dialog, &reply);
if ( err != noErr && err != userCanceledErr )
m_path = wxEmptyString ;
- if ( dialog )
- ::NavDialogDispose(dialog);
+ if ( dialog )
+ ::NavDialogDispose(dialog);
return (err == noErr) ? wxID_OK : wxID_CANCEL ;
}