mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Lock event loop
This commit is contained in:
parent
6c9d5e1499
commit
fe06cd63ac
2 changed files with 1 additions and 1 deletions
Telegram/SourceFiles/core
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue