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
parent
2e365245c1
commit
613c2f92b8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue