Lock event loop

This commit is contained in:
Ilya Fedin 2024-04-09 19:16:00 +04:00 committed by John Preston
parent 6c9d5e1499
commit fe06cd63ac
2 changed files with 1 additions and 1 deletions
Telegram/SourceFiles/core

View file

@ -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() {

View file

@ -107,6 +107,7 @@ private:
void readClients();
void removeClients();
QEventLoopLocker _eventLoopLocker;
const Qt::HANDLE _mainThreadId = nullptr;
int _eventNestingLevel = 0;
int _loopNestingLevel = 0;