diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2023-03-28 14:23:40 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2023-04-02 11:24:39 +0200 |
commit | 9ddd71a6c2b6cef641f2a8cdc256fb2fbe01fa5b (patch) | |
tree | fac9fade600329851392ce0ecc4f12b5ead2eaa3 /tests/auto/corelib/global/qrand/qrand.pro | |
parent | 15d6244ec35c5bbdc5ed76eb787f68932f78eed6 (diff) |
QFileSelector::selectionHelper walks through the list of selectors
(on iOS, on my phone it's ("ios", "iOS", "en_NO", "unix", "darwin")),
creating paths and testing QDir::exists. This ends up in asset
file engine trying to load asset for something like:
"assets-library://assets/+iOS" etc. ALAssetsLibrary -assetForUrl:
returns nil for such url and we start iterating through the assets
library. On my phone (e.g.) this takes about ~6 seconds (to iterate
through pictures/videos I have), so the image picker is dismissed
~30 seconds after an image was actually selected in a picker view,
making an impression it's completely broken. Bail out early
on such url, we know we'll fail (with AssetsLibrary giving a warning
about invalid asset with UUID(null).
Pick-to: 6.5
Fixes: QTBUG-109120
Change-Id: Ia302f4151e3aade830e647a8a260479df2b29d4b
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qrand/qrand.pro')
0 files changed, 0 insertions, 0 deletions