From: Stefan Csomor Date: Wed, 18 Aug 2004 18:59:42 +0000 (+0000) Subject: wxOVERWRITE_PROMPT support X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/78eeb09597b4a33859ec46c18cfca601ab23e677 wxOVERWRITE_PROMPT support git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index 9c7cd9f6b4..5e48321ce7 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -410,6 +410,12 @@ int wxFileDialog::ShowModal() if (numFilters < 2) dialogCreateOptions.optionFlags |= kNavPreserveSaveFileExtension; +#if TARGET_API_MAC_OSX + if (!(m_dialogStyle & wxOVERWRITE_PROMPT)) + { + dialogCreateOptions.optionFlags |= kNavDontConfirmReplacement; + } +#endif err = ::NavCreatePutFileDialog(&dialogCreateOptions, // Suppresses the 'Default' (top) menu item kNavGenericSignature, kNavGenericSignature,