mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix possible crash in EditCaptionBox.
This commit is contained in:
@@ -192,7 +192,6 @@ EditCaptionBox::EditCaptionBox(
|
|||||||
maxH);
|
maxH);
|
||||||
_thumbnailImageLoaded = true;
|
_thumbnailImageLoaded = true;
|
||||||
};
|
};
|
||||||
prepareStreamedPreview();
|
|
||||||
} else {
|
} else {
|
||||||
Assert(_photoMedia != nullptr);
|
Assert(_photoMedia != nullptr);
|
||||||
|
|
||||||
@@ -328,6 +327,10 @@ EditCaptionBox::EditCaptionBox(
|
|||||||
) | rpl::start_with_next([&](bool checked) {
|
) | rpl::start_with_next([&](bool checked) {
|
||||||
_asFile = checked;
|
_asFile = checked;
|
||||||
}, _wayWrap->lifetime());
|
}, _wayWrap->lifetime());
|
||||||
|
|
||||||
|
if (_animated) {
|
||||||
|
prepareStreamedPreview();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditCaptionBox::~EditCaptionBox() = default;
|
EditCaptionBox::~EditCaptionBox() = default;
|
||||||
|
Reference in New Issue
Block a user