[orca] And yet another sanity check for yet another broken accessibility tree



commit de6edc63b1f2fc127ff128fd8376e5a5e4308a7c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 11 13:33:12 2016 -0400

    And yet another sanity check for yet another broken accessibility tree

 src/orca/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 2d5e878..789f9fe 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1669,7 +1669,7 @@ class Utilities:
         if role == pyatspi.ROLE_MENU_BAR:
             self._selectedMenuBarMenu[hash(root)] = self.selectedMenuBarMenu(root)
 
-        if root.parent.getRole() == pyatspi.ROLE_MENU_BAR \
+        if root.parent and root.parent.getRole() == pyatspi.ROLE_MENU_BAR \
            and not self.isInOpenMenuBarMenu(root):
             return [root]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]