[orca] Fix for bug #650136 - Fallback on combo box name to get the displayed item



commit 8e96301630a58a8ca94cd8e5f8bc924452e582e3
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Sep 16 12:04:45 2011 +0200

    Fix for bug #650136 - Fallback on combo box name to get the displayed item

 src/orca/script_utilities.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 8d620b7..838e8f1 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -511,7 +511,9 @@ class Utilities:
             if selectedItem:
                 displayedText = self.displayedText(selectedItem)
                 #print "SELECTEDITEM", displayedText
-            elif combo.name and len(combo.name):
+                if displayedText:
+                    return displayedText
+            if combo.name and len(combo.name):
                 # We give preference to the name over the text because
                 # the text for combo boxes seems to never change in
                 # some cases.  The main one where we see this is in



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