Merge pull request #605 from flowln/fix_crash_in_downloader_image

Fixes https://github.com/PrismLauncher/PrismLauncher/issues/590
This commit is contained in:
flow 2022-12-15 04:47:56 -08:00 committed by GitHub
commit 4f1ea712da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ void VariableSizedImageObject::loadImage(QTextDocument* doc, const QUrl& source,
auto full_entry_path = entry->getFullPath();
auto source_url = source;
connect(job, &NetJob::succeeded, [this, doc, full_entry_path, source_url, posInDocument] {
connect(job, &NetJob::succeeded, this, [this, doc, full_entry_path, source_url, posInDocument] {
qDebug() << "Loaded resource at" << full_entry_path;
// If we flushed, don't proceed.