diff --git a/src/osx/carbon/filedlg.cpp b/src/osx/carbon/filedlg.cpp index 719654a23a..4fb787eacf 100644 --- a/src/osx/carbon/filedlg.cpp +++ b/src/osx/carbon/filedlg.cpp @@ -466,7 +466,7 @@ wxFileDialog::wxFileDialog( void wxFileDialog::SetupExtraControls(WXWindow nativeWindow) { - wxNonOwnedWindow::Create( GetParent(), nativeWindow ); + wxTopLevelWindow::Create( GetParent(), nativeWindow ); if (HasExtraControlCreator()) {