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-30 18:41:42 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-30 18:41:42 (GMT)
commit71e9e15193b9276549a1b26f731c2cb2b0417181 (patch)
tree464b6034180a006ee3228761ab727b7fb50b0739 /model.py
parentc78745b7e399395ae6ebb56ab51a14903f8e2704 (diff)
If the game is modified, must set model mode = 'file'
Signed-off-by: Gonzalo Odiard <gonzalo@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 f212cbd..cc0e608 100644
--- a/model.py
+++ b/model.py
@@ -147,6 +147,7 @@ class Model(object):
logging.debug('Model mark_modified is_demo False')
self.is_demo = False
self.modified = True
+ self.data['mode'] = 'file'
def read(self, game_file):
self.modified = False