[orca] Handle instance of an AT-SPI2 hung-process error for LibreOffice
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle instance of an AT-SPI2 hung-process error for LibreOffice
- Date: Tue, 1 Sep 2015 15:41:47 +0000 (UTC)
commit 0f627a5064e74869c071c37e49b3b09e50479b56
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Sep 1 11:40:12 2015 -0400
Handle instance of an AT-SPI2 hung-process error for LibreOffice
src/orca/scripts/apps/soffice/script_utilities.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script_utilities.py
b/src/orca/scripts/apps/soffice/script_utilities.py
index 22ed99a..473bfba 100644
--- a/src/orca/scripts/apps/soffice/script_utilities.py
+++ b/src/orca/scripts/apps/soffice/script_utilities.py
@@ -326,8 +326,14 @@ class Utilities(script_utilities.Utilities):
"""Returns True if the given object is a container which has
no presentable information (label, name, displayed text, etc.)."""
- role = obj.getRole()
- if role == pyatspi.ROLE_PANEL and obj.childCount == 1:
+ try:
+ role = obj.getRole()
+ childCount = obj.childCount
+ except:
+ role = None
+ childCount = 0
+
+ if role == pyatspi.ROLE_PANEL and childCount == 1:
if obj.name and obj.name == obj[0].name:
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]