iOS: Don't send all touch events async

Commit 77942a1bdf introduced the QScopedValueRollback, but without
assigning it to a local temporary, so the value was rolled back
immediately, resulting in always sending touch events async.

Change-Id: Ic7f65c3d38c46813ff06694e883dae3df138b9d4
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
bb10
Tor Arne Vestbø 2017-12-19 19:58:29 +01:00
parent ffc8409aa5
commit 44ef95a885
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ static QIOSScreen* qtPlatformScreenFor(UIScreen *uiScreen)
- (void)sendEvent:(UIEvent *)event
{
QScopedValueRollback<BOOL>(self->_sendingEvent, YES);
QScopedValueRollback<BOOL> sendingEvent(self->_sendingEvent, YES);
[super sendEvent:event];
}