summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-04-09 15:46:14 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-04-17 12:55:02 +0000
commitab9b026d2734321f1d5a06b79f97107a867687c3 (patch)
tree50458d4b490deb9f49a97748116780c9128f0c3b /src/plugins
parent5b09346cf4322704a866f253b911d467c40df3ba (diff)
iOS: Don't assume our UIWindow is a QUIWindow
Change-Id: I6494e4a476273b131aedcf409abdb1ffffa5b62e Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/ios/quiview.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/quiview.mm b/src/plugins/platforms/ios/quiview.mm
index fc327d3a95..de60bd7c36 100644
--- a/src/plugins/platforms/ios/quiview.mm
+++ b/src/plugins/platforms/ios/quiview.mm
@@ -446,7 +446,8 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
if (m_activeTouches.isEmpty())
return;
- if (!static_cast<QUIWindow *>(self.window).sendingEvent) {
+ if ([self.window isKindOfClass:[QUIWindow class]] &&
+ !static_cast<QUIWindow *>(self.window).sendingEvent) {
// The event is likely delivered as part of delayed touch delivery, via
// _UIGestureEnvironmentSortAndSendDelayedTouches, due to one of the two
// _UISystemGestureGateGestureRecognizer instances on the top level window