Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-09-16 14:04:54 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-16 21:39:23 (GMT)
commit02f202019aa2e9f0281218ca1f2a271bfbac3647 (patch)
treeb2c8744b940ab0ce9c50341de921163dbf9538b7 /model.py
parent5c17e1472ff9af26016712d244cbe39787cba425 (diff)
Enable/Disable new-game button according if the game has started or not
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Reviewed-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'model.py')
-rw-r--r--model.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.py b/model.py
index cb04358..726300e 100644
--- a/model.py
+++ b/model.py
@@ -149,6 +149,7 @@ class Model(object):
def read(self, game_file):
self.modified = False
+ self.count = 0
self.data['key'] = basename(game_file)
self.data['game_file'] = game_file
self.data['path'] = self.temp_folder