diff options
author | Assam Boudjelthia <[email protected]> | 2022-11-22 14:02:11 +0200 |
---|---|---|
committer | Assam Boudjelthia <[email protected]> | 2022-12-10 07:40:11 +0200 |
commit | f3c998510d3a6c8fc468e449d66b0280119d0a8f (patch) | |
tree | 4acf402f22ff272e52a0d1513922cf2f76d7cb22 /src/plugins/platforms/android/androidcontentfileengine.cpp | |
parent | 2f440169c07e9501bad6f668c66961d49532eacc (diff) |
Fix infinite loop when iterating content uri sub-files/dirs
make QAbstractFileEngineIterator::currentFilePath() virtual
and implement it under AndroidContentFileEngine to return
current fileName because content uris shouldn't be constructed
manaully like normal file paths.
Pick-to: 6.4 6.2
Fixes: QTBUG-104776
Change-Id: I4643a73a3bd4019bedaa056c35468117bcec18dc
Reviewed-by: Ville Voutilainen <[email protected]>
Diffstat (limited to 'src/plugins/platforms/android/androidcontentfileengine.cpp')
-rw-r--r-- | src/plugins/platforms/android/androidcontentfileengine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/android/androidcontentfileengine.cpp b/src/plugins/platforms/android/androidcontentfileengine.cpp index 04862ccba6e..978dd5332b0 100644 --- a/src/plugins/platforms/android/androidcontentfileengine.cpp +++ b/src/plugins/platforms/android/androidcontentfileengine.cpp @@ -200,3 +200,8 @@ QString AndroidContentFileEngineIterator::currentFileName() const return QString(); return m_entries.at(m_index - 1); } + +QString AndroidContentFileEngineIterator::currentFilePath() const +{ + return currentFileName(); +} |