Commit 481e8bc6 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Qt by Nokia

Make sure we get a valid accessibleInterface in child_helper.

With filtering out more items from the tree of accessibles
make sure that if we get 0 returned we don't crash.

Change-Id: I7926ab66cd037952f7042dc46092cf5e2096d7c6
Reviewed-by: 's avatarJan-Arve Sæther <jan-arve.saether@nokia.com>
parent edea70f3
......@@ -127,7 +127,7 @@ static QQuickItem *childAt_helper(QQuickItem *item, int x, int y)
}
QScopedPointer<QAccessibleInterface> accessibleInterface(QAccessible::queryAccessibleInterface(item));
if (accessibleInterface->childCount() == 0) {
if (accessibleInterface && accessibleInterface->childCount() == 0) {
return (itemScreenRect(item).contains(x, y)) ? item : 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment