Fix legacy instance update segfault
This commit is contained in:
parent
e18d3a9501
commit
cffdc4e045
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user