Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-09-20 13:07:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-20 13:07:35 (GMT)
commitb4e316cd8bd72a7b0e83976cb77fe955b47a5455 (patch)
treeda4a662400f79179d85705a3128a6a287f83bb06 /activity.py
parent05811f40eb4cf620bbd216570dea7ac0287a71bb (diff)
Change the place where the model is marked as modified to avoid bad interaction at saving
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index b0f4b9c..f484c27 100644
--- a/activity.py
+++ b/activity.py
@@ -275,7 +275,6 @@ class MemorizeActivity(Activity):
'game.xml')
game_zip.close()
self.metadata['mime_type'] = 'application/x-memorize-project'
- self.game.model.modified = False
def _complete_close(self):
self._remove_temp_files()
@@ -308,6 +307,7 @@ class MemorizeActivity(Activity):
self.table.change_game(None, self.game.model.data,
self.game.model.grid)
self.save()
+ self.game.model.modified = False
if self.play_mode == False:
self.hbox.remove(self.createcardpanel)