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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user