[orca] Fix for bug 654210 - Orca sometimes fails to present the default button in a dialog



commit 8bf080c47a65cf53cfc637feec7ea93a96a42763
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Thu Jul 7 20:13:05 2011 -0400

    Fix for bug 654210 - Orca sometimes fails to present the default button in a dialog

 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 838e8f1..0cd6058 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1371,7 +1371,7 @@ class Utilities:
         for i in range(obj.childCount - 1, -1, -1):
             if obj[i].getRole() == pyatspi.ROLE_STATUS_BAR:
                 statusBar = obj[i]
-            elif not obj[i] in skipRoles:
+            elif not obj[i].getRole() in skipRoles:
                 statusBar = self.statusBar(obj[i])
 
             if statusBar:



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