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:
parent
6bc3b8e968
commit
78eeb09597
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user