summaryrefslogtreecommitdiffstats
path: root/libmultimc/src/gameupdatetask.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-07-07 18:12:09 +0200
committerPetr Mrázek <peterix@gmail.com>2013-07-07 18:12:39 +0200
commita23323a01ee2713209619ad99d8859616aa99cdb (patch)
tree8001e7aa9e2ac41557eac657bc29549c86370c27 /libmultimc/src/gameupdatetask.cpp
parent8f5516ceb6b897c4e3452d424d55d02023eab270 (diff)
downloadMultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar
MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.gz
MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.lz
MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.tar.xz
MultiMC-a23323a01ee2713209619ad99d8859616aa99cdb.zip
Small tweaks to the assets - delete extra files
Diffstat (limited to 'libmultimc/src/gameupdatetask.cpp')
-rw-r--r--libmultimc/src/gameupdatetask.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmultimc/src/gameupdatetask.cpp b/libmultimc/src/gameupdatetask.cpp
index c718ce71..49f9335f 100644
--- a/libmultimc/src/gameupdatetask.cpp
+++ b/libmultimc/src/gameupdatetask.cpp
@@ -47,7 +47,13 @@ void GameUpdateTask::executeTask()
// Get a pointer to the version object that corresponds to the instance's version.
MinecraftVersion *targetVersion = (MinecraftVersion *)MinecraftVersionList::getMainList().
findVersion(m_inst->intendedVersion());
- Q_ASSERT_X(targetVersion != NULL, "game update", "instance's intended version is not an actual version");
+ if(targetVersion == NULL)
+ {
+ //Q_ASSERT_X(targetVersion != NULL, "game update", "instance's intended version is not an actual version");
+ setState(StateFinished);
+ emit gameUpdateComplete(m_response);
+ return;
+ }
// Make directories
QDir binDir(m_inst->binDir());