#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);