[orca] Add sanity check when checking if an object is a spellcheck suggestion
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add sanity check when checking if an object is a spellcheck suggestion
- Date: Mon, 15 Feb 2016 05:21:27 +0000 (UTC)
commit 6277308118037b1aece874f9ad83dfec462d00df
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 15 00:20:18 2016 -0500
Add sanity check when checking if an object is a spellcheck suggestion
src/orca/spellcheck.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/spellcheck.py b/src/orca/spellcheck.py
index 00e17ee..ac2e125 100644
--- a/src/orca/spellcheck.py
+++ b/src/orca/spellcheck.py
@@ -126,6 +126,9 @@ class SpellCheck:
return False
def isSuggestionsItem(self, obj):
+ if not self._suggestionsList:
+ return False
+
return obj and obj.parent == self._suggestionsList
def presentContext(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]