Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-10-29 14:41:24 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-10-29 14:41:24 (GMT)
commit8879c2787081a6151a951b80a8293228e1025149 (patch)
treee2fc60748e5a648789847931aa4e95d37a5046d9
parent69484a0e3862aa8bbb56ce9ce31ddb2b4af49808 (diff)
Be sure all the changes in the text views are in the model before write
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--historietaactivity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/historietaactivity.py b/historietaactivity.py
index a2d271e..b367981 100644
--- a/historietaactivity.py
+++ b/historietaactivity.py
@@ -156,6 +156,11 @@ class HistorietaActivity(activity.Activity):
print "Fin de Ingresando al titulo"
def write_file(self, file_path):
+ # be sure all the changes are commited
+ active_globe = self.page.get_globo_activo()
+ if active_globe is not None:
+ active_globe.set_selected(False)
+
print "write file path", file_path
persistence = persistencia.Persistence()
persistence.write(file_path, self.page)