From 223f57dea940a4932277ae7e16cd30e1c04fe9df Mon Sep 17 00:00:00 2001
From: Gonzalo Odiard <godiard@gmail.com>
Date: Thu, 22 Sep 2011 11:58:44 -0300
Subject: [PATCH 1/2] Set the name in the game with the activity title

This is needed because now we do not have a separated widget
to set the game name. If the game name is not present, the generated
xml file is not valid.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
---
 activity.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/activity.py b/activity.py
index f6d822e..d2a99df 100644
--- a/activity.py
+++ b/activity.py
@@ -272,6 +272,7 @@ class MemorizeActivity(Activity):
                                 os.path.join('sounds', bsnd))
 
         self.game.model.game_path = self.game.model.temp_folder
+        self.game.model.data['name'] = str(self.get_title())
         self.game.model.write()
         game_zip.write(os.path.join(self.game.model.temp_folder, 'game.xml'),
                 'game.xml')
-- 
1.7.4.4

