mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed possible crash in OverlayWidget when video continues from PiP.
This commit is contained in:
@@ -209,7 +209,7 @@ base::binary_guard ReadImageAsync(
|
||||
}
|
||||
|
||||
void ResolveDocument(
|
||||
not_null<Window::SessionController*> controller,
|
||||
Window::SessionController *controller,
|
||||
not_null<DocumentData*> document,
|
||||
HistoryItem *item) {
|
||||
if (!document->date) {
|
||||
@@ -222,7 +222,7 @@ void ResolveDocument(
|
||||
&& document->isVideoFile()
|
||||
&& !document->filepath().isEmpty()) {
|
||||
File::Launch(document->location(false).fname);
|
||||
} else {
|
||||
} else if (controller) {
|
||||
controller->openDocument(document, msgId, true);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user