mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +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() {
|
||||
const auto session = _session;
|
||||
if (!session) {
|
||||
if (!session || !_photo) {
|
||||
return;
|
||||
}
|
||||
const auto &active = _session->windows();
|
||||
if (active.empty()) {
|
||||
return;
|
||||
}
|
||||
close();
|
||||
active.front()->requestAttachedStickerSets(_photo);
|
||||
close();
|
||||
}
|
||||
|
||||
auto OverlayWidget::sharedMediaType() const
|
||||
|
|
Loading…
Add table
Reference in a new issue