[pyatspi2] Remove double deletion of application from the desktop cache handler. Was causing a mostly harmless
- From: Mark Doffman <markdoffman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Remove double deletion of application from the desktop cache handler. Was causing a mostly harmless
- Date: Sat, 15 May 2010 10:07:44 +0000 (UTC)
commit 4c2e2e0d6a8564a0c25acea03ebccf8af42fa4ae
Author: Mark Doffman <mark doffman codethink co uk>
Date: Sat May 15 11:06:25 2010 +0100
Remove double deletion of application from the desktop cache handler.
Was causing a mostly harmless exception when an application shut down.
pyatspi/cache.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pyatspi/cache.py b/pyatspi/cache.py
index 8e58e7b..69e6f23 100644
--- a/pyatspi/cache.py
+++ b/pyatspi/cache.py
@@ -139,11 +139,11 @@ class DesktopCacheManager (object):
del(self._application_list[bus_name])
self._cache[(self._unique_name, ATSPI_ROOT_PATH)].children.remove (any_data)
- item = self._cache[(sender, path)]
- if minor == "add":
- item.children.insert (detail1, any_data)
- elif minor == "remove":
- del (item.children[detail1])
+ #item = self._cache[(sender, path)]
+ #if minor == "add":
+ # item.children.insert (detail1, any_data)
+ #elif minor == "remove":
+ # del (item.children[detail1])
#------------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]