Merge pull request #185 from flowln/fix_blocked_mods_crash

This commit is contained in:
Sefa Eyeoglu 2022-10-22 12:44:20 +02:00
parent 25b0ec6eff
commit a74fdc588c
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,11 @@ void Flame::FileResolvingTask::netJobFinished()
}
index++;
}
connect(job, &NetJob::finished, this, &Flame::FileResolvingTask::modrinthCheckFinished);
connect(job, &NetJob::finished, this,
[this, &job] {
modrinthCheckFinished();
job->deleteLater();
});
job->start();
}

View File

@ -136,11 +136,13 @@ void ProgressDialog::onTaskStarted() {}
void ProgressDialog::onTaskFailed(QString failure)
{
reject();
hide();
}
void ProgressDialog::onTaskSucceeded()
{
accept();
hide();
}
void ProgressDialog::changeStatus(const QString& status)