mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix rare crash in message list context menu.
This commit is contained in:
parent
1350fa64f3
commit
0fbb2e77fe
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ base::unique_qptr<Ui::PopupMenu> FillContextMenu(
|
|||
}
|
||||
}
|
||||
|
||||
if (!list->hasCopyRestriction(view->data())) {
|
||||
if (!view || !list->hasCopyRestriction(view->data())) {
|
||||
AddCopyLinkAction(result, link);
|
||||
}
|
||||
AddMessageActions(result, request, list);
|
||||
|
|
Loading…
Add table
Reference in a new issue