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 Sefa Eyeoglu
parent d7223972d8
commit 25c63dd1e0
No known key found for this signature in database
GPG Key ID: C10411294912A422

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.