diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-08 19:35:36 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-08 19:35:36 +0200 |
commit | cffdc4e045d4e72376d83c30ad063c290b071d62 (patch) | |
tree | a1372e3c62632e828bdc1b0f1c16960d7deec723 /logic/LegacyUpdate.cpp | |
parent | e18d3a95019c90430a22949ecca23601e281eab1 (diff) | |
download | MultiMC-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.cpp | 2 |
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))); |