[orca] Be sure mouse review object is in current document before presenting it
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be sure mouse review object is in current document before presenting it
- Date: Mon, 8 Jul 2019 16:30:16 +0000 (UTC)
commit 09cf314b55b9cf70595caa1450e1ac176e529fa2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jul 8 12:29:54 2019 -0400
Be sure mouse review object is in current document before presenting it
src/orca/mouse_review.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index ef246562a..ade98d3d8 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -422,6 +422,11 @@ class MouseReviewer:
debug.println(debug.LEVEL_INFO, msg, True)
return
+ if document and obj and document != script.utilities.getContainingDocument(obj):
+ msg = "MOUSE REVIEW: %s is not in active document %s" % (obj, document)
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
if obj and obj.getRole() in script.utilities.getCellRoles() \
and script.utilities.shouldReadFullRow(obj):
isRow = lambda x: x and x.getRole() == pyatspi.ROLE_TABLE_ROW
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]