[orca] Fix for bug 673157 - Unhandled exception when in Unity Greeter
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 673157 - Unhandled exception when in Unity Greeter
- Date: Fri, 30 Mar 2012 16:17:54 +0000 (UTC)
commit 37cdcb35f4f070b4b80ee51146e3d7ed177b3460
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Mar 30 12:16:39 2012 -0400
Fix for bug 673157 - Unhandled exception when in Unity Greeter
src/orca/flat_review.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index 886d997..ba620c5 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -640,8 +640,12 @@ class Context:
currentWordIndex = 0
currentCharIndex = 0
- if orca_state.locusOfFocus and \
- orca_state.locusOfFocus.getRole() == pyatspi.ROLE_TABLE_CELL:
+ try:
+ role = orca_state.locusOfFocus.getRole()
+ except:
+ role = None
+
+ if role == pyatspi.ROLE_TABLE_CELL:
searchZone = orca_state.activeScript.\
utilities.realActiveDescendant(orca_state.locusOfFocus)
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]