From 72278b7181383cfd8268b372860ab666d774bab1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?=
 <jan-arve.saether@theqtcompany.com>
Date: Mon, 17 Nov 2014 14:00:04 +0100
Subject: [PATCH] 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>
---
 src/plugins/platforms/ios/quiview_accessibility.mm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/plugins/platforms/ios/quiview_accessibility.mm b/src/plugins/platforms/ios/quiview_accessibility.mm
index 6565e083021..74fb509b074 100644
--- a/src/plugins/platforms/ios/quiview_accessibility.mm
+++ b/src/plugins/platforms/ios/quiview_accessibility.mm
@@ -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
-- 
GitLab