void wxFileDialog::SetupExtraControls(WXWindow nativeWindow)
{
- wxNonOwnedWindow::Create( GetParent(), nativeWindow );
+ wxTopLevelWindow::Create( GetParent(), nativeWindow );
if (HasExtraControlCreator())
{
SetupExtraControls(NavDialogGetWindow(dialog));
if (err == noErr)
+ {
+ wxDialog::OSXBeginModalDialog();
err = ::NavDialogRun(dialog);
+ wxDialog::OSXEndModalDialog();
+ }
// clean up filter related data, etc.
if (navFilterUPP)