[orca/gnome-3-0] Fix for bug #650136 - Fallback on combo box name to get the displayed item
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-0] Fix for bug #650136 - Fallback on combo box name to get the displayed item
- Date: Mon, 16 May 2011 10:09:38 +0000 (UTC)
commit a20708dd132bad8c02698443e6ab4f2941711235
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 0899589..53b7054 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]