Skip to content

Commit

Permalink
Lock event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Apr 9, 2024
1 parent 6c9d5e1 commit fe06cd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Telegram/SourceFiles/core/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/core/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class Sandbox final
void readClients();
void removeClients();

QEventLoopLocker _eventLoopLocker;
const Qt::HANDLE _mainThreadId = nullptr;
int _eventNestingLevel = 0;
int _loopNestingLevel = 0;
Expand Down

0 comments on commit fe06cd6

Please sign in to comment.