From db23485fa22ef93b82fa81ffaaa315f9eb8a437d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 9 Nov 2020 13:47:53 +0300 Subject: [PATCH] Fix quit from fullscreen on macOS. --- Telegram/SourceFiles/core/sandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index ecbe4d8f3b..ab441b5648 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -215,7 +215,7 @@ void Sandbox::setupScreenScale() { Sandbox::~Sandbox() = default; bool Sandbox::event(QEvent *e) { - if (e->type() == QEvent::Close) { + if (e->type() == QEvent::Close || e->type() == QEvent::Quit) { App::quit(); } return QApplication::event(e);