diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index 3daf91784..4110a73a7 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -255,7 +255,10 @@ void Sandbox::setupScreenScale() { Sandbox::~Sandbox() = default; bool Sandbox::event(QEvent *e) { - if (e->type() == QEvent::Quit && !Quitting()) { + if (e->type() == QEvent::Quit) { + if (Quitting()) { + return QCoreApplication::event(e); + } Quit(QuitReason::QtQuitEvent); e->ignore(); return false;