aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/World.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-02 13:29:37 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-04-02 13:29:37 +0200
commit41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54 (patch)
treec75b21505555b9819ee926d6b2a9afbfd9c5fdcd /launcher/minecraft/World.cpp
parente8697068fb5baa454ad97ae272726f98d2108f94 (diff)
downloadPrismLauncher-41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54.tar.gz
PrismLauncher-41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54.tar.bz2
PrismLauncher-41d7b27d4376eaab1c4ed8dbe0fbd32000ac3e54.zip
fix: calculate world sizes individually
Diffstat (limited to 'launcher/minecraft/World.cpp')
-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())
{