summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstylehints.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <[email protected]>2023-01-20 09:54:25 +0100
committerQt Cherry-pick Bot <[email protected]>2023-02-15 09:50:55 +0000
commit9a7a12692fcc0849e56d8f85d7d201483c3e0aec (patch)
tree61cc9092dfe3dd64d5861f4c51d5a4d08b15f3a0 /src/gui/kernel/qstylehints.h
parenta71251dc2b862f56ae0a8a46744ec3504c618dd1 (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. Fixes: QTBUG-107844 Change-Id: If4dd453549b37933cba07b5d7af6e45f2504dd29 Reviewed-by: Richard Moe Gustavsen <[email protected]> (cherry picked from commit 402a526b2a87cbf6b7466bacb9dd3d8b7c71d9b2) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'src/gui/kernel/qstylehints.h')
0 files changed, 0 insertions, 0 deletions