Merge pull request #185 from flowln/fix_blocked_mods_crash
This commit is contained in:
commit
54c26b05fa
@ -66,7 +66,11 @@ void Flame::FileResolvingTask::netJobFinished()
|
|||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
connect(job, &NetJob::finished, this, &Flame::FileResolvingTask::modrinthCheckFinished);
|
connect(job, &NetJob::finished, this,
|
||||||
|
[this, &job] {
|
||||||
|
modrinthCheckFinished();
|
||||||
|
job->deleteLater();
|
||||||
|
});
|
||||||
|
|
||||||
job->start();
|
job->start();
|
||||||
}
|
}
|
||||||
|
@ -136,11 +136,13 @@ void ProgressDialog::onTaskStarted() {}
|
|||||||
void ProgressDialog::onTaskFailed(QString failure)
|
void ProgressDialog::onTaskFailed(QString failure)
|
||||||
{
|
{
|
||||||
reject();
|
reject();
|
||||||
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProgressDialog::onTaskSucceeded()
|
void ProgressDialog::onTaskSucceeded()
|
||||||
{
|
{
|
||||||
accept();
|
accept();
|
||||||
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProgressDialog::changeStatus(const QString& status)
|
void ProgressDialog::changeStatus(const QString& status)
|
||||||
|
Loading…
Reference in New Issue
Block a user