diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-06-29 15:42:36 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-06-30 14:05:13 +0200 |
| commit | 8fbce6b4a04ba9712e45340afc9b52fe2966f125 (patch) | |
| tree | 02a57efbe0c87a7bb4ac9403bf60d12c7a106968 /src/network/access/qnetworkrequest.cpp | |
| parent | d766caa429a759670c42e0590f1bd27b19bf6187 (diff) | |
macOS: Enable dirs in file dialogs, also when treating bundles as dirs
In our NSOpenSavePanelDelegate we respond to panel:shouldEnableURL:
with YES if it's a directory or symlink to a directory, which matches
the native behavior.
But the panel has a special flag to treat bundles as directories instead
of files. We were checking this flag, but ignoring the case where it
was actually set (which it normally is not), and as a result would
go on to filter directory names as well.
We now handle both cases, and only call [NSWorkspace isFilePackageAtPath:]
if needed (when the treatsFilePackagesAsDirectories flag is not set).
Pick-to: 6.5 6.6 6.2
Change-Id: I2b9a16ff99b4b643389acc042c032813f432ac59
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions
