mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed crash in OverlayWidget when user opens attached stickers.
Fixed #8710.
This commit is contained in:
parent
a0af748fc5
commit
8d70a62ee8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue