2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fixed crash in OverlayWidget when user opens attached stickers.

Fixed #8710.
This commit is contained in:
23rd
2020-10-02 17:49:42 +03:00
committed by John Preston
parent a0af748fc5
commit 8d70a62ee8

View File

@@ -1544,15 +1544,15 @@ void OverlayWidget::onCopy() {
void OverlayWidget::onAttachedStickers() { void OverlayWidget::onAttachedStickers() {
const auto session = _session; const auto session = _session;
if (!session) { if (!session || !_photo) {
return; return;
} }
const auto &active = _session->windows(); const auto &active = _session->windows();
if (active.empty()) { if (active.empty()) {
return; return;
} }
close();
active.front()->requestAttachedStickerSets(_photo); active.front()->requestAttachedStickerSets(_photo);
close();
} }
auto OverlayWidget::sharedMediaType() const auto OverlayWidget::sharedMediaType() const