mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 16:35:44 +00:00
Lock event loop
This commit is contained in:
@@ -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() {
|
||||
|
@@ -107,6 +107,7 @@ private:
|
||||
void readClients();
|
||||
void removeClients();
|
||||
|
||||
QEventLoopLocker _eventLoopLocker;
|
||||
const Qt::HANDLE _mainThreadId = nullptr;
|
||||
int _eventNestingLevel = 0;
|
||||
int _loopNestingLevel = 0;
|
||||
|
Reference in New Issue
Block a user