wxOVERWRITE_PROMPT support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-08-18 18:59:42 +00:00
parent 6bc3b8e968
commit 78eeb09597

View File

@ -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,