summaryrefslogtreecommitdiffstats
path: root/logic/LegacyUpdate.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-08 19:35:36 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-08 19:35:36 +0200
commitcffdc4e045d4e72376d83c30ad063c290b071d62 (patch)
treea1372e3c62632e828bdc1b0f1c16960d7deec723 /logic/LegacyUpdate.cpp
parente18d3a95019c90430a22949ecca23601e281eab1 (diff)
downloadMultiMC-cffdc4e045d4e72376d83c30ad063c290b071d62.tar
MultiMC-cffdc4e045d4e72376d83c30ad063c290b071d62.tar.gz
MultiMC-cffdc4e045d4e72376d83c30ad063c290b071d62.tar.lz
MultiMC-cffdc4e045d4e72376d83c30ad063c290b071d62.tar.xz
MultiMC-cffdc4e045d4e72376d83c30ad063c290b071d62.zip
Fix legacy instance update segfault
Diffstat (limited to 'logic/LegacyUpdate.cpp')
-rw-r--r--logic/LegacyUpdate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp
index c75a0011..7bf12faa 100644
--- a/logic/LegacyUpdate.cpp
+++ b/logic/LegacyUpdate.cpp
@@ -229,7 +229,7 @@ void LegacyUpdate::jarStart()
auto dljob = new DownloadJob("Minecraft.jar for version " + intended_version_id);
dljob->add(QUrl(urlstr), inst->defaultBaseJar());
- legacyDownloadJob.reset();
+ legacyDownloadJob.reset(dljob);
connect(legacyDownloadJob.data(), SIGNAL(finished()), SLOT(jarFinished()));
connect(legacyDownloadJob.data(), SIGNAL(failed()), SLOT(jarFailed()));
connect(legacyDownloadJob.data(), SIGNAL(progress(qint64,qint64)), SLOT(updateDownloadProgress(qint64,qint64)));