diff options
author | Pavol Markovic <pavol.markovic@serato.com> | 2017-02-23 15:20:04 +1300 |
---|---|---|
committer | Pavol Markovic <pavol.markovic@serato.com> | 2017-04-04 01:16:01 +0000 |
commit | 116ade88ea20d8b43a4cafac4ad23289f123b532 (patch) | |
tree | da61484fff48cbb880fa878a29a8416c9ef50f8c /src/sql | |
parent | 4e2f0fe4d6b252ea15167c514a127eb3f25fbbf8 (diff) |
macOS: Replace deprecated NSOpenSavePanelDelegate method
shouldShowFilename method has been deprecated since macOS 10.6.
In 10.11 the behavior of this method has been broken, causing
files containing metadata (e.g. audio) to be incorrectly filtered out,
displayed them as disabled in file dialog even though they shouldn’t be.
This erratic behavior applies also to NSOpenPanel setAllowedFileTypes
if set to anything but nil. This has been confirmed to be a known bug
in Cocoa.
Using shouldEnableURL solves this problem and also removes risk
of breaking compatibility with future SDKs.
Renamed and simplified private method isHiddenFile to
isHiddenFileAtURL.
Renamed to be consistent with other Cocoa file query methods.
Simplified to return true only if the file is hidden as the name of the method
implies. Previously it might have returned true also if the file has
not existed which was in fact very metaphysical answer.
Check for presence of the file is done by other method before calling
this one and the scope of the method is limited to one source file.
Task-number: QTBUG-57527
Change-Id: I2fded712d4e7098eb444331d92e38cee71655100
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/sql')
0 files changed, 0 insertions, 0 deletions