[orca] Fix for bug 673567 - List in Firefox preferences dialog not presented



commit ee17dc1a95e9e6b137b0165bf4b0041ff5508e1f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Apr 5 09:15:55 2012 -0400

    Fix for bug 673567 - List in Firefox preferences dialog not presented

 .../scripts/toolkits/Gecko/braille_generator.py    |    2 +-
 .../scripts/toolkits/Gecko/speech_generator.py     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/braille_generator.py b/src/orca/scripts/toolkits/Gecko/braille_generator.py
index 52f6e27..bc36f0b 100644
--- a/src/orca/scripts/toolkits/Gecko/braille_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/braille_generator.py
@@ -225,7 +225,7 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
 
         s = obj.querySelection()
         items = [s.getSelectedChild(i) for i in xrange(s.nSelectedChildren)]
-        if not items:
+        if not items and obj.childCount:
             items.append(obj[0])
         items = map(self._generateName, items)
         for item in items:
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index 864f066..4eae1eb 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -315,7 +315,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
 
         s = obj.querySelection()
         items = [s.getSelectedChild(i) for i in xrange(s.nSelectedChildren)]
-        if not items:
+        if not items and obj.childCount:
             items.append(obj[0])
         items = map(self._generateName, items)
         for item in items:



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