]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/filedlg.cpp
rely on built-in best size...
[wxWidgets.git] / src / mac / carbon / filedlg.cpp
index 2c2004b9c4dd1e4f9121eb523a36963202fee8fc..3385b176a9d5ac751524783e2080fd4fceb19e2e 100644 (file)
@@ -407,7 +407,8 @@ int wxFileDialog::ShowModal()
         dialogCreateOptions.optionFlags |= kNavDontAddTranslateItems;
 
         // The extension is important
-        dialogCreateOptions.optionFlags |= kNavPreserveSaveFileExtension;
+        if (numFilters < 2)
+            dialogCreateOptions.optionFlags |= kNavPreserveSaveFileExtension;
 
         err = ::NavCreatePutFileDialog(&dialogCreateOptions,
                                        // Suppresses the 'Default' (top) menu item