diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-21 07:14:33 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-09-21 07:14:40 +0200 |
commit | d10e4c193b0152350e884adcc1060aabd1a974f7 (patch) | |
tree | 23b553e40575d4660709fe8765dcb77e3625103d /src/plugins/platforms/ios/quiview.mm | |
parent | 8d64d1e0c3f7ebcee859e8b5f40aa27a8df86351 (diff) | |
parent | 25e9bde2d665866f7a9a40d1ed3aa8fabcf2ac2f (diff) |
Merge remote-tracking branch 'origin/5.6' into 5.7
Change-Id: I9cfefaf22b010fca937be77979f5fb50574bb71e
Diffstat (limited to 'src/plugins/platforms/ios/quiview.mm')
-rw-r--r-- | src/plugins/platforms/ios/quiview.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/quiview.mm b/src/plugins/platforms/ios/quiview.mm index e38be68343..9c7acc9278 100644 --- a/src/plugins/platforms/ios/quiview.mm +++ b/src/plugins/platforms/ios/quiview.mm @@ -423,7 +423,8 @@ // We do this by assuming that there are no cases where a // sub-set of the active touch events are intentionally cancelled. - if (touches && (static_cast<NSInteger>([touches count]) != m_activeTouches.count())) + NSInteger count = static_cast<NSInteger>([touches count]); + if (count != 0 && count != m_activeTouches.count()) qWarning("Subset of active touches cancelled by UIKit"); m_activeTouches.clear(); |