Ticket #2926 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

clicking star causes newly typed description to disappear

Reported by: walter Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: sugar Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

In the Journal detail view, if you type in the description box and then click on the star, the text you typed disappears. Text that had previously saved does not disappear.

To reproduce:

(1) open the detail view for a Journal entry;
(2) type some text in the description box
(3) click on the star
(4) observe that the text you just typed disappears.

Attachments

update-patch Download (408 bytes) - added by walter 2 years ago.
one-line patch to fix the problem

Change History

Changed 2 years ago by walter

Seems that simply adding an update in _keep_icon_activated_cb() will fix the problem.

--- expandedentry.py 2011-06-08 14:28:50.951068937 -0400
+++ expandedentry.py 2011-06-22 07:41:29.219046967 -0400
@@ -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._metadatakeep? = 0

else:

Changed 2 years ago by walter

one-line patch to fix the problem

Changed 2 years ago by walter

  • status changed from new to closed
  • resolution set to fixed

Fixed with Erikos's patch:

 http://git.sugarlabs.org/sugar/mainline/commit/84f08da0d73ec2da47cc0b51855bf700d0c1075d

Tested by Walter on 2011-06-24

Changed 2 years ago by erikos

Can be tested in build 871.

Note: See TracTickets for help on using tickets.