diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2024-04-09 19:16:00 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2024-04-09 20:48:47 +0400 |
commit | fe06cd63ac0c07cc833abb20d5b63e3ffdd12d48 (patch) | |
tree | 2dea9a6b0b24871bed84155fef5b472829e53e03 | |
parent | 6c9d5e1499cc6fb1479371e6c0da1dae13917c93 (diff) |
Lock event loop
-rw-r--r-- | Telegram/SourceFiles/core/sandbox.cpp | 1 | ||||
-rw-r--r-- | Telegram/SourceFiles/core/sandbox.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index 6feacdb5bd..3daf917841 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -82,7 +82,6 @@ bool Sandbox::QuitOnStartRequested = false; Sandbox::Sandbox(int &argc, char **argv) : QApplication(argc, argv) , _mainThreadId(QThread::currentThreadId()) { - setQuitOnLastWindowClosed(false); } int Sandbox::start() { diff --git a/Telegram/SourceFiles/core/sandbox.h b/Telegram/SourceFiles/core/sandbox.h index 4c15c2828b..dfb1fe4a63 100644 --- a/Telegram/SourceFiles/core/sandbox.h +++ b/Telegram/SourceFiles/core/sandbox.h @@ -107,6 +107,7 @@ private: void readClients(); void removeClients(); + QEventLoopLocker _eventLoopLocker; const Qt::HANDLE _mainThreadId = nullptr; int _eventNestingLevel = 0; int _loopNestingLevel = 0; |