Merge pull request #387 from Scrumplex/fix-world-size

fix: calculate world sizes individually
This commit is contained in:
Ezekiel Smith 2022-04-03 20:45:23 +10:00 committed by GitHub
commit d33d5b847d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ int64_t calculateWorldSize(const QFileInfo &file)
} }
else if(file.isDir()) else if(file.isDir())
{ {
QDirIterator it(file.absolutePath(), QDirIterator::Subdirectories); QDirIterator it(file.absoluteFilePath(), QDir::Files, QDirIterator::Subdirectories);
int64_t total = 0; int64_t total = 0;
while (it.hasNext()) while (it.hasNext())
{ {