diff options
Diffstat (limited to 'api/logic/launch/steps/Update.cpp')
-rw-r--r-- | api/logic/launch/steps/Update.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/logic/launch/steps/Update.cpp b/api/logic/launch/steps/Update.cpp index 956230f4..d057febb 100644 --- a/api/logic/launch/steps/Update.cpp +++ b/api/logic/launch/steps/Update.cpp @@ -1,4 +1,4 @@ -/* Copyright 2013-2017 MultiMC Contributors +/* Copyright 2013-2018 MultiMC Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ void Update::executeTask() emitFailed(tr("Task aborted.")); return; } - m_updateTask.reset(m_parent->instance()->createUpdateTask()); + m_updateTask.reset(m_parent->instance()->createUpdateTask(m_mode)); if(m_updateTask) { connect(m_updateTask.get(), SIGNAL(finished()), this, SLOT(updateFinished())); @@ -42,7 +42,7 @@ void Update::proceed() void Update::updateFinished() { - if(m_updateTask->successful()) + if(m_updateTask->wasSuccessful()) { m_updateTask.reset(); emitSucceeded(); |