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 committed by GitHub
commit 54c26b05fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)