diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-05-03 23:11:52 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-05-03 23:13:49 +0200 |
commit | e76e6329cdf4f1613c6303debd3ca43493147f7b (patch) | |
tree | 69a21f72da050a7c67435eae8850a73942ada1bd /api/logic/minecraft/AssetsUtils.cpp | |
parent | 0efa714ba55a33ea6dbcbd08b50c0b09675ce83b (diff) | |
download | MultiMC-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.cpp | 2 |
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; |