Mark event loop nesting more carefully.

Fixes #5506. I hope fixes #5508.
This commit is contained in:
John Preston
2018-12-23 16:08:48 +04:00
parent 4e692e2c1e
commit de4a477686
5 changed files with 30 additions and 4 deletions
+2 -1
View File
@@ -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;
}