diff options
author | Ezekiel Smith <ezekielsmith@protonmail.com> | 2022-04-03 20:45:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 20:45:23 +1000 |
commit | d33d5b847dafe968b3ba05610d34b4d24ff8840b (patch) | |
tree | d0e93f624354a7b7e24fb13f7616b9a603d1a951 /launcher | |
parent | c8879df621fad56c3b425c80b1f417178775dc27 (diff) | |
parent | 41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54 (diff) | |
download | PrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.tar.gz PrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.tar.bz2 PrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.zip |
Merge pull request #387 from Scrumplex/fix-world-size
fix: calculate world sizes individually
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/minecraft/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/World.cpp b/launcher/minecraft/World.cpp index 9cf67ed9..dc756e06 100644 --- a/launcher/minecraft/World.cpp +++ b/launcher/minecraft/World.cpp @@ -196,7 +196,7 @@ int64_t calculateWorldSize(const QFileInfo &file) } else if(file.isDir()) { - QDirIterator it(file.absolutePath(), QDirIterator::Subdirectories); + QDirIterator it(file.absoluteFilePath(), QDir::Files, QDirIterator::Subdirectories); int64_t total = 0; while (it.hasNext()) { |