]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/filedlg.cpp
Correct format specifiers used to show wxIPV4address.
[wxWidgets.git] / src / osx / carbon / filedlg.cpp
index 719654a23ae08a04abdde5098e61b26cad8e080f..158846b529923de8e3c7190e5e7935401ae6fdaf 100644 (file)
@@ -466,7 +466,7 @@ wxFileDialog::wxFileDialog(
 
 void wxFileDialog::SetupExtraControls(WXWindow nativeWindow)
 {
-    wxNonOwnedWindow::Create( GetParent(), nativeWindow );
+    wxTopLevelWindow::Create( GetParent(), nativeWindow );
     
     if (HasExtraControlCreator())
     {
@@ -541,7 +541,11 @@ int wxFileDialog::ShowModal()
     SetupExtraControls(NavDialogGetWindow(dialog));
     
     if (err == noErr)
+    {
+        wxDialog::OSXBeginModalDialog();
         err = ::NavDialogRun(dialog);
+        wxDialog::OSXEndModalDialog();
+    }
 
     // clean up filter related data, etc.
     if (navFilterUPP)