[orca] Do not assume that just because the role blows up, the state will as well.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Do not assume that just because the role blows up, the state will as well.
- Date: Mon, 23 Jan 2012 13:01:25 +0000 (UTC)
commit e098391b35e5fbd82f08d8cef2ad99b17819600c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jan 23 13:57:23 2012 +0100
Do not assume that just because the role blows up, the state will as well.
src/orca/scripts/toolkits/Gecko/script.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 8785697..da551f1 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2007,9 +2007,11 @@ class Script(default.Script):
#
try:
role = candidate.getRole()
- state = candidate.getState()
except LookupError:
role = None
+ try:
+ state = candidate.getState()
+ except LookupError:
state = pyatspi.StateSet()
if role in [pyatspi.ROLE_LIST, pyatspi.ROLE_COMBO_BOX] \
and state.contains(pyatspi.STATE_FOCUSABLE) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]