summaryrefslogtreecommitdiffstats
path: root/api/logic/updater
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-06-26 01:14:32 +0200
committerPetr Mrázek <peterix@gmail.com>2017-06-26 01:14:32 +0200
commit89d3a66658ebdb16582a4d7a2cab57cfd6906393 (patch)
treef3b4daf14a18db76de1b9998da16b505b3872d10 /api/logic/updater
parent2973b11d3edf47fe437af4dd1dc1a5f250c49ba3 (diff)
downloadMultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar
MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.gz
MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.lz
MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.xz
MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.zip
NOISSUE some safe refactors and changes of the task subsystem
Possibly also some bug fixes.
Diffstat (limited to 'api/logic/updater')
-rw-r--r--api/logic/updater/DownloadTask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/updater/DownloadTask.cpp b/api/logic/updater/DownloadTask.cpp
index 0d40f78a..f08839b5 100644
--- a/api/logic/updater/DownloadTask.cpp
+++ b/api/logic/updater/DownloadTask.cpp
@@ -70,7 +70,7 @@ void DownloadTask::vinfoDownloadFailed()
{
// Something failed. We really need the second download (current version info), so parse
// downloads anyways as long as the first one succeeded.
- if (m_newVersionFileListDownload->m_status != Job_Failed)
+ if (m_newVersionFileListDownload->wasSuccessful())
{
processDownloadedVersionInfo();
return;
@@ -97,7 +97,7 @@ void DownloadTask::processDownloadedVersionInfo()
}
// if we have the current version info, use it.
- if (m_currentVersionFileListDownload && m_currentVersionFileListDownload->m_status != Job_Failed)
+ if (m_currentVersionFileListDownload && m_currentVersionFileListDownload->wasSuccessful())
{
setStatus(tr("Reading file list for current version..."));
qDebug() << "Reading file list for current version...";