diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquickitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index c2d16f3133..61effb2756 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -8933,8 +8933,8 @@ void QQuickItemPrivate::localizedTouchEvent(const QTouchEvent *event, bool isFil // So hopefully if we start from one passive grabber and go up the parent chain from there, // we will find any filtering parent items that exist. auto handler = qmlobject_cast<QQuickPointerHandler *>(pg.first()); - Q_ASSERT(handler); - pointGrabber = handler->parentItem(); + if (handler) + pointGrabber = handler->parentItem(); } } |