[orca] Only do the work to filter inferred labels if we have to
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Only do the work to filter inferred labels if we have to
- Date: Fri, 5 Apr 2019 21:55:08 +0000 (UTC)
commit 138c7127cb996cfab72cc63d3af4d5aa905099b4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 5 17:53:18 2019 -0400
Only do the work to filter inferred labels if we have to
src/orca/scripts/web/script_utilities.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c0dd5ca2c..6be3be541 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2238,11 +2238,11 @@ class Utilities(script_utilities.Utilities):
rv = False
elif obj.getRole() == pyatspi.ROLE_TABLE_ROW:
rv = self.hasExplicitName(obj)
-
- widget = self.isInferredLabelForContents(x, contents)
- alwaysFilter = [pyatspi.ROLE_RADIO_BUTTON, pyatspi.ROLE_CHECK_BOX]
- if widget and (inferLabels or widget.getRole() in alwaysFilter):
- rv = False
+ else:
+ widget = self.isInferredLabelForContents(x, contents)
+ alwaysFilter = [pyatspi.ROLE_RADIO_BUTTON, pyatspi.ROLE_CHECK_BOX]
+ if widget and (inferLabels or widget.getRole() in alwaysFilter):
+ rv = False
self._shouldFilter[hash(obj)] = rv
return rv
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]