Do not skip the parent node when flattening the hierarchy.

The weather app had a search field with a clear button as a child.
Because of this bug it didn't report the content of the text edit (but
only the clear button)

Change-Id: I174c6e150e1991fa9aa2a911048590030b5ccc40
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
bb10
Jan Arve Sæther 2014-11-17 14:00:04 +01:00
parent 94e40c7c78
commit 72278b7181
1 changed files with 3 additions and 6 deletions

View File

@ -60,12 +60,9 @@
if (!iface)
return;
if (iface->childCount() == 0) {
[self createAccessibleElement: iface];
} else {
for (int i = 0; i < iface->childCount(); ++i)
[self createAccessibleContainer: iface->child(i)];
}
[self createAccessibleElement: iface];
for (int i = 0; i < iface->childCount(); ++i)
[self createAccessibleContainer: iface->child(i)];
}
- (void)initAccessibility