Implement support for wxFD_NO_FOLLOW in wxMac

Disable aliases resolving in standard file dialogs if this flag is
specified.

Closes https://github.com/wxWidgets/wxWidgets/pull/1479
This commit is contained in:
oneeyeman1
2019-08-11 19:46:25 -05:00
committed by Vadim Zeitlin
parent 0861f6504b
commit 78c3ef2ebb
2 changed files with 4 additions and 3 deletions

View File

@@ -350,7 +350,7 @@ void wxFileDialog::ShowWindowModal()
[oPanel setTreatsFilePackagesAsDirectories:NO];
[oPanel setCanChooseDirectories:NO];
[oPanel setResolvesAliases:YES];
[oPanel setResolvesAliases:HasFlag(wxFD_NO_FOLLOW) ? NO : YES];
[oPanel setCanChooseFiles:YES];
[oPanel setMessage:cf.AsNSString()];
[oPanel setAllowsMultipleSelection: (HasFlag(wxFD_MULTIPLE) ? YES : NO )];
@@ -608,7 +608,7 @@ int wxFileDialog::ShowModal()
[oPanel setTreatsFilePackagesAsDirectories:NO];
[oPanel setCanChooseDirectories:NO];
[oPanel setResolvesAliases:YES];
[oPanel setResolvesAliases:HasFlag(wxFD_NO_FOLLOW) ? NO : YES];
[oPanel setCanChooseFiles:YES];
[oPanel setMessage:cf.AsNSString()];
[oPanel setAllowsMultipleSelection: (HasFlag(wxFD_MULTIPLE) ? YES : NO )];