aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-04-03 20:45:23 +1000
committerGitHub <noreply@github.com>2022-04-03 20:45:23 +1000
commitd33d5b847dafe968b3ba05610d34b4d24ff8840b (patch)
treed0e93f624354a7b7e24fb13f7616b9a603d1a951
parentc8879df621fad56c3b425c80b1f417178775dc27 (diff)
parent41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54 (diff)
downloadPrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.tar.gz
PrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.tar.bz2
PrismLauncher-d33d5b847dafe968b3ba05610d34b4d24ff8840b.zip
Merge pull request #387 from Scrumplex/fix-world-size
fix: calculate world sizes individually
-rw-r--r--launcher/minecraft/World.cpp2
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())
{