[orca/gnome-3-36] Be sure we have an object when frameAndDialog is called
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-36] Be sure we have an object when frameAndDialog is called
- Date: Mon, 13 Apr 2020 19:15:39 +0000 (UTC)
commit c91b44014b248f800fcf1a8451a3f175c3c7f326
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Apr 13 15:14:44 2020 -0400
Be sure we have an object when frameAndDialog is called
src/orca/script_utilities.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 75ee2c529..54042ab9d 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -629,6 +629,12 @@ class Utilities:
results = [None, None]
+ obj = obj or orca_state.locusOfFocus
+ if not obj:
+ msg = "ERROR: frameAndDialog() called without valid object"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return results
+
if obj.getRole() == pyatspi.ROLE_FRAME:
results[0] = obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]