[Sugar-devel] [PATCH] _update_signal_match wasn't initialized
Raul Gutierrez Segales
rgs at rieder.net.py
Mon Apr 26 16:18:49 EDT 2010
Forgot to mention that this is for 0.84 branch, 0.88 does it right.
On Mon, 2010-04-26 at 15:50 -0400, Raul Gutierrez Segales wrote:
> 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 = {}
More information about the Sugar-devel
mailing list