mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 15:32:08 +00:00
Mark event loop nesting more carefully.
Fixes #5506. I hope fixes #5508.
This commit is contained in:
@@ -430,7 +430,8 @@ bool Application::nativeEventFilter(
|
||||
const QByteArray &eventType,
|
||||
void *message,
|
||||
long *result) {
|
||||
if (_eventNestingLevel > _loopNestingLevel) {
|
||||
if (_eventNestingLevel > _loopNestingLevel
|
||||
&& Platform::NativeEventNestsLoop(message)) {
|
||||
_previousLoopNestingLevels.push_back(_loopNestingLevel);
|
||||
_loopNestingLevel = _eventNestingLevel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user