2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix crash in downloads bar.

This commit is contained in:
John Preston
2022-03-09 08:53:15 +04:00
parent 6e00b4636b
commit f1064e2d2f

View File

@@ -927,7 +927,9 @@ rpl::producer<Ui::DownloadBarContent> MakeDownloadBarContent() {
state->media = thumbnailed
? thumbnailed->createMediaView()
: nullptr;
state->media->thumbnailWanted(single->item->fullId());
if (const auto raw = state->media.get()) {
raw->thumbnailWanted(single->item->fullId());
}
state->thumbnail = QImage();
resolveThumbnail();
}