forked from qt-creator/qt-creator
Docker: Fix crash during directory iteration
Task-number: QTCREATORBUG-30790 Change-Id: Id59aa00f2ba8c960dd70d982e2d46a0bcf5bc0da Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -653,7 +653,7 @@ void FileAccess::iterateDirectory(const FilePath &filePath,
|
|||||||
t.start();
|
t.start();
|
||||||
|
|
||||||
while (!result->isFinished()) {
|
while (!result->isFinished()) {
|
||||||
if (result->isValid()) {
|
if (result->isValid() && idx < result->resultCount()) {
|
||||||
result->resultAt(idx);
|
result->resultAt(idx);
|
||||||
// Wait for the next result to become available
|
// Wait for the next result to become available
|
||||||
processResults();
|
processResults();
|
||||||
|
Reference in New Issue
Block a user