[orca/gnome-3-22] And yet another sanity check for yet another broken	accessibility tree
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [orca/gnome-3-22] And yet another sanity check for yet another broken	accessibility tree
- Date: Tue, 11 Oct 2016 17:34:08 +0000 (UTC)
commit 01bef533430477c86d4a8181a6211db0636c7b04
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 6112c37..d6f59d9 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]