From: Julian Smart Date: Fri, 4 Jun 2004 10:21:16 +0000 (+0000) Subject: If we have multiple filters in a Save dialog, don't use X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a485ee6f5a09c84e2a3164ad0d7d4cbf3662a434 If we have multiple filters in a Save dialog, don't use kNavPreserveSaveFileExtension since it suppresses multiple filters. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index 2c2004b9c4..3385b176a9 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -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