diff options
| author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2022-10-21 02:20:09 +0300 |
|---|---|---|
| committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2022-10-21 16:54:29 +0300 |
| commit | 89f89cedc0e62f4b66de340da57d6c56dc61baf0 (patch) | |
| tree | e3db216f0a7e01a5b71f1a1e2420dcdc98ed8aba /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | d59b2fde5eef39cc1735cadf2327f99ca6055306 (diff) | |
Android: fix Android assets handler not listing dirs with only sub dirs
Amends edd983071e0a90ee8665d2f45916fb575fc25857.
Remove redundant calls to AAssetDir_getNextFileName() in
AndroidAbstractFileEngine::setFileName(). It's enough to check
if AAssetManager_open() returns null and AAssetManager_openDir() is
valid for the provided asset file name.
As part of this fix, add some unit tests to cover/ensure assets
listing/iterating works as expected.
Fixes: QTBUG-107627
Pick-to: 6.4 6.2 5.15
Change-Id: I37ae9cb64fbbc60699bb748895f77fd6a34fae1f
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
