GNOME Bugzilla – Bug 462650
Traceback when using whereAmI in Evolution New Contact dialog
Last modified: 2008-07-22 19:28:19 UTC
Steps to reproduce: 1. Launch Evolution 2. Press Control Shift C for a New Contact 3. With focus in the Full Name entry, press KP_Enter for whereAmI Expected results: Orca would announce your present location Actual results: Orca says nothing and the following error is generated: Traceback (most recent call last):
+ Trace 152209
consumed = self._function(script, inputEvent)
return self.whereAmI.whereAmI(obj, doubleClick, orcaKey)
self._speakText(obj, doubleClick)
self._getTextContents(obj, doubleClick)
[current, other] = self._hasTextSelections(obj)
if prevObj.text.getNSelections() > 0:
Created attachment 92892 [details] [review] proposed patch check for prevObj and prevObj.text before calling text.getNSelections() Mike please test. Thanks!
This patch seems to work in all places except for the email pane. If you press "whereamI" in any of the email fields you will get no feedback from orca.
Created attachment 93054 [details] [review] D'oh! Also check for nextObj and nextObj.text. Mike this fixes that issue for me. Could you please verify? Rich, I think I feel about Evolution.py the same way you feel about Gecko.py. ;-) Null checks are harmless, of course. But what I'm wondering is this: Is there a case in _hasTextSelections() where we don't have a prevObj (or a nextObj) but want to do *something* else before moving on? If you can't think of one and this solves the issue for Mike, I'll check it in.
> Is there a case in _hasTextSelections() where we don't have a prevObj (or a > nextObj) but want to do *something* else before moving on? Can't think of one. If Mike is happy, I think you are good for checking it in. Thanks for asking though. ;-)
works great now. thanks
Thanks guys. This being a bug fix I committed it to both the 2.20 branch and trunk. Moving to pending.
I think this one is OK to close now.
Sounds good. Thanks! Closing as FIXED.