[orca] Fix for bug #640135 - Generator Cache can get cleared in the midst of getting the mnemonic, shortcut
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug #640135 - Generator Cache can get cleared in the midst of getting the mnemonic, shortcut
- Date: Fri, 21 Jan 2011 06:13:42 +0000 (UTC)
commit cf512709eea843d12fc81e62d9bf53139b7d0714
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Jan 21 01:13:08 2011 -0500
Fix for bug #640135 - Generator Cache can get cleared in the midst of getting the mnemonic, shortcut, and accelerator
src/orca/script_utilities.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index d921a91..577b010 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2726,6 +2726,9 @@ class Utilities:
debug.println(debug.LEVEL_FINEST, "script_utilities.getKeyBinding: " \
+ repr([mnemonic, fullShortcut, accelerator]))
+ if not self._script.generatorCache.has_key(self.KEY_BINDING):
+ self._script.generatorCache[self.KEY_BINDING] = {}
+
self._script.generatorCache[self.KEY_BINDING][obj] = \
[mnemonic, fullShortcut, accelerator]
return self._script.generatorCache[self.KEY_BINDING][obj]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]