[Sugar-devel] [PATCH] _update_signal_match wasn't initialized
Raul Gutierrez Segales
rgs at rieder.net.py
Mon Apr 26 15:50:17 EDT 2010
Because of missing initialization and a weak test for the existence of
the object (self._update_signal_match is not None) Turtle Art was
crashing when resuming from the Journal.
Signed-off-by: Raúl Gutiérrez S. <rgs at paraguayeduca.org>
Ackd-by: Bernie Innocenti <bernie at sugarlabs.org>
---
src/sugar/datastore/datastore.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/sugar/datastore/datastore.py b/src/sugar/datastore/datastore.py
index 6ff10de..e711f02 100644
--- a/src/sugar/datastore/datastore.py
+++ b/src/sugar/datastore/datastore.py
@@ -57,6 +57,7 @@ class DSMetadata(gobject.GObject):
}
def __init__(self, props=None):
+ self._update_signal_match = None
gobject.GObject.__init__(self)
if not props:
self._props = {}
--
1.6.3.3
More information about the Sugar-devel
mailing list