diff options
| author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2023-01-20 09:54:25 +0100 |
|---|---|---|
| committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2023-02-15 08:36:50 +0100 |
| commit | 402a526b2a87cbf6b7466bacb9dd3d8b7c71d9b2 (patch) | |
| tree | 2460731b9de09d40c3e185a73bcd2d051c5e317d /src/widgets/doc/snippets/code | |
| parent | 3dc6fdc6d8ae661a6800c14a2461f456ec344e17 (diff) | |
QIosFileDialog - properly handle QUrl for assets-library
For QT_PLATFORM_UIKIT 'PicturesLocation' manually appended by "assets-library://".
When converted to QUrl, such a path becomes a valid url, having empty path
and scheme "assets-library". Later in QIOSFileDialog we convert this
path (options()->initialDirectory()) calling QUrl::toLocalPath, which
gives us an empty string and thus we erroneusly select document picker
dialog, not an image picker. So let's also check a scheme, not path
only.
Pick-to: 6.5 6.4 6.2
Fixes: QTBUG-107844
Change-Id: If4dd453549b37933cba07b5d7af6e45f2504dd29
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
