diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-09-20 13:07:35 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-09-20 13:07:35 (GMT) |
commit | b4e316cd8bd72a7b0e83976cb77fe955b47a5455 (patch) | |
tree | da4a662400f79179d85705a3128a6a287f83bb06 /activity.py | |
parent | 05811f40eb4cf620bbd216570dea7ac0287a71bb (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.py | 2 |
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) |