[orca] Handle another instance of an app becoming non-responsive



commit fd25bdbfd649ca4a8afd338857e6ea8c26e0e86b
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed May 11 15:59:34 2016 -0400

    Handle another instance of an app becoming non-responsive

 src/orca/script_utilities.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 82f261e..6f4ec66 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3212,6 +3212,7 @@ class Utilities:
     def selectedChildren(self, obj):
         try:
             selection = obj.querySelection()
+            count = selection.nSelectedChildren
         except NotImplementedError:
             msg = "INFO: %s does not implement the selection interface" % obj
             debug.println(debug.LEVEL_INFO, msg, True)
@@ -3221,7 +3222,6 @@ class Utilities:
             debug.println(debug.LEVEL_INFO, msg, True)
             return []
 
-        count = selection.nSelectedChildren
         msg = "INFO: %s reports %i selected children" % (obj, count)
         debug.println(debug.LEVEL_INFO, msg, True)
 
@@ -3256,6 +3256,7 @@ class Utilities:
     def selectedChildCount(self, obj):
         try:
             selection = obj.querySelection()
+            count = selection.nSelectedChildren
         except NotImplementedError:
             msg = "INFO: %s does not implement the selection interface" % obj
             debug.println(debug.LEVEL_INFO, msg, True)
@@ -3265,7 +3266,6 @@ class Utilities:
             debug.println(debug.LEVEL_INFO, msg, True)
             return 0
 
-        count = selection.nSelectedChildren
         msg = "INFO: %s reports %i selected children" % (obj, count)
         debug.println(debug.LEVEL_INFO, msg, True)
         return count


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