Fix crash in Pip-to-Viewer after message deletion.
Fixes #25262. Fixes #25522.
This commit is contained in:
parent
d02819db13
commit
0ce01410a1
|
@ -3334,14 +3334,14 @@ void OverlayWidget::switchToPip() {
|
|||
Expects(_document != nullptr);
|
||||
|
||||
const auto document = _document;
|
||||
const auto message = _message;
|
||||
const auto messageId = _message ? _message->fullId() : FullMsgId();
|
||||
const auto topicRootId = _topicRootId;
|
||||
const auto closeAndContinue = [=] {
|
||||
_showAsPip = false;
|
||||
show(OpenRequest(
|
||||
findWindow(false),
|
||||
document,
|
||||
message,
|
||||
document->owner().message(messageId),
|
||||
topicRootId,
|
||||
true));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue