iOS: Properly scope window deactivation on resignFirstResponder

We were missing brackets, but luckily the only result was that we
unconditionally flushed events through flushWindowSystemEvents.

Change-Id: If10bcc6a07501b9fb0db891e01b8ecc9d794ab30
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
bb10
Tor Arne Vestbø 2014-10-03 13:13:35 +02:00 committed by Tor Arne Vestbø
parent 2e365245c1
commit 613c2f92b8
1 changed files with 2 additions and 1 deletions

View File

@ -208,9 +208,10 @@
// of activating another window. The handleWindowActivated of the activation
// will take care of both.
dispatch_async(dispatch_get_main_queue (), ^{
if (![[UIResponder currentFirstResponder] isKindOfClass:[QUIView class]])
if (![[UIResponder currentFirstResponder] isKindOfClass:[QUIView class]]) {
QWindowSystemInterface::handleWindowActivated(0);
QWindowSystemInterface::flushWindowSystemEvents();
}
});
return YES;