diff options
author | Tor Arne Vestbø <torarnv@gmail.com> | 2020-03-02 19:36:26 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-03-04 00:29:54 +0000 |
commit | 5d9d3ff3269f92366b022e17485fa4dd98f5ba95 (patch) | |
tree | 167204d917ad70ceb4c01538d5acac103aaded6d /examples/widgets/tools | |
parent | 1edf586ed73596e1d53a0d612a77f86ea34a65bf (diff) |
macOS: Reduce save dialog extension filters to their last component
NSSavePanel does not deal well with multi-part extensions, to the point
where it will fail to open if that's the only acceptable extension.
We follow Chromium's lead here and reduce the extension to its last
component, which enables selecting and saving files such as 'foo.tar.gz'.
To improve the user experience we always show file extensions when we
detect a multi-part extension. This makes it clearer what the final
extension will be, and avoids confusing macOS about the intention of
the user when choosing a file that without the final extension also
matches another known extension.
Fixes: QTBUG-38303
Fixes: QTBUG-44227
Change-Id: Id0cee84f758c2cd59fcf1b339caa30f7da07dd1e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/widgets/tools')
0 files changed, 0 insertions, 0 deletions