Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2926 closed defect (fixed)

clicking star causes newly typed description to disappear

Reported by: walter Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified
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 (1)

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 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 13 years ago by walter

one-line patch to fix the problem

comment:2 Changed 13 years ago by walter

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with Erikos's patch:

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

Tested by Walter on 2011-06-24

comment:4 Changed 13 years ago by erikos

Can be tested in build 871.

Note: See TracTickets for help on using tickets.