summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/AssetsUtils.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-03 23:11:52 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-03 23:13:49 +0200
commite76e6329cdf4f1613c6303debd3ca43493147f7b (patch)
tree69a21f72da050a7c67435eae8850a73942ada1bd /api/logic/minecraft/AssetsUtils.cpp
parent0efa714ba55a33ea6dbcbd08b50c0b09675ce83b (diff)
downloadMultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.gz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.lz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.tar.xz
MultiMC-e76e6329cdf4f1613c6303debd3ca43493147f7b.zip
NOISSUE Revert all recent changes to NetAction and NetJob
Diffstat (limited to 'api/logic/minecraft/AssetsUtils.cpp')
-rw-r--r--api/logic/minecraft/AssetsUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/AssetsUtils.cpp b/api/logic/minecraft/AssetsUtils.cpp
index ad864d51..5191e5bd 100644
--- a/api/logic/minecraft/AssetsUtils.cpp
+++ b/api/logic/minecraft/AssetsUtils.cpp
@@ -199,7 +199,7 @@ NetActionPtr AssetObject::getDownloadAction()
auto rawHash = QByteArray::fromHex(hash.toLatin1());
objectDL->addValidator(new Net::ChecksumValidator(QCryptographicHash::Sha1, rawHash));
}
- objectDL->setProgress(0, size);
+ objectDL->m_total_progress = size;
return objectDL;
}
return nullptr;