diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-09-19 16:24:23 +0800 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2022-09-29 14:32:06 +0800 |
commit | cd62ba232a4a6ee349ea983179dd8b85ccdf89d3 (patch) | |
tree | 83208420566edb97e8af6dcb1bdd14fab6b1f78c /tests/auto/qml/qqmlsettings | |
parent | f0e22e5397a8702e53607c34d93dc8c52b02de5e (diff) |
FileDialog: fix selectedFile being incorrect when going up a directory
The code was assuming that directories are always shown first, which
is not always the case since 26f3b70119483ebb27dab83b3d60278685a41ff7.
Fix this by using the fileList function, which takes into account the
ShowDirectoriesFirst theme hint.
Fixes: QTBUG-106690
Pick-to: 6.4
Change-Id: Ib6df80ee35cef50b5f47f9ead81b7ee3684610f4
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlsettings')
0 files changed, 0 insertions, 0 deletions