]> git.saurik.com Git - wxWidgets.git/commitdiff
If we have multiple filters in a Save dialog, don't use
authorJulian Smart <julian@anthemion.co.uk>
Fri, 4 Jun 2004 10:21:16 +0000 (10:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 4 Jun 2004 10:21:16 +0000 (10:21 +0000)
kNavPreserveSaveFileExtension since it suppresses multiple
filters.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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