mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Fix crash in downloads bar.
This commit is contained in:
@@ -927,7 +927,9 @@ rpl::producer<Ui::DownloadBarContent> MakeDownloadBarContent() {
|
|||||||
state->media = thumbnailed
|
state->media = thumbnailed
|
||||||
? thumbnailed->createMediaView()
|
? thumbnailed->createMediaView()
|
||||||
: nullptr;
|
: nullptr;
|
||||||
state->media->thumbnailWanted(single->item->fullId());
|
if (const auto raw = state->media.get()) {
|
||||||
|
raw->thumbnailWanted(single->item->fullId());
|
||||||
|
}
|
||||||
state->thumbnail = QImage();
|
state->thumbnail = QImage();
|
||||||
resolveThumbnail();
|
resolveThumbnail();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user