[Sugar-devel] [PATCH] add update to keep callback to prevent data loss

Walter Bender walter at sugarlabs.org
Wed Jun 22 07:57:29 EDT 2011


From: Walter Bender <walter.bender at gmail.com>

Patch to fix data loss problem with keep button

"clicking star causes newly typed description to disappear"
(http://bugs.sugarlabs.org/ticket/2926)

---
 src/jarabe/journal/expandedentry.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
index fe2f320..1307876 100644
--- a/src/jarabe/journal/expandedentry.py
+++ b/src/jarabe/journal/expandedentry.py
@@ -416,6 +416,7 @@ class ExpandedEntry(hippo.CanvasBox):
     def _keep_icon_activated_cb(self, keep_icon):
         if not model.is_editable(self._metadata):
             return
+        self._update_entry()
         if self.get_keep():
             self._metadata['keep'] = 0
         else:
-- 
1.7.4.4



More information about the Sugar-devel mailing list