Closed Bug 466095 Opened 17 years ago Closed 17 years ago

Text description still appears after task is deleted

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adelinoaraujo, Assigned: Fallen)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b1) Gecko/20081007 Firefox/3.1b1 Build Identifier: Thunderbird version 2.0.0.18 (20081105) check that there are no task created create new task in calendar view (right side) and add some text to the task delete the task (right-button mouse and delete task) switch to task view (left down) the deleted task text, is still in the lower-panel Reproducible: Always Steps to Reproduce: 1.check that there are no task created 2.create new task in calendar view (right side) and add some text to the task 3.delete the task (right-button mouse and delete task) 4.switch to task view (left down) 5.the deleted task text, is still in the lower-panel Actual Results: The description text of the task keep's appearing in the description location, but the task was deleted. Expected Results: No text should appear It is more than cosmetic than a real problem. But if I delete a task, I don't want that text to stay in the description box. It's a bug, but a minor bug.
Version: unspecified → 2.0
Product: Thunderbird → Calendar
QA Contact: general → general
Version: 2.0 → unspecified
Component: General → Lightning Only
QA Contact: general → lightning
Same problem as Berend works on bug 404039? The tree's observer is not registered. Adding dependency so we could check once it's fixed.
Component: Lightning Only → General
Depends on: 404039
QA Contact: lightning → general
The same problem with last nightly build. What about 1.0 to fix it?
Checked in lightning build 20081218, reproducible also with Linux and MAC
Status: UNCONFIRMED → NEW
Component: General → Calendar Views
Ever confirmed: true
OS: Windows Vista → All
QA Contact: general → views
Hardware: x86 → All
Flags: blocking-calendar1.0+
Keywords: qawanted
Attached patch Fix - v1Splinter Review
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #357790 - Flags: review?(Berend.Cornelius)
Whiteboard: [needs review]
Attachment #357790 - Flags: review?(Berend.Cornelius) → review+
Comment on attachment 357790 [details] [diff] [review] Fix - v1 >+ let index = tree.currentIndex; >+ if (tree.view && tree.view.selection) { >+ // If the current index is not selected, then ignore >+ index = (tree.view.selection.isSelected(index) ? index : -1); >+ } I think this implementation should be within the property implementation of "currentIndex", shouldn't it? r=berend
No, currentIndex is (see nsITreeSelection) the node that has is marked active (i.e has a dotted line around it). This does not mean its selected (i.e the item is highlighted. Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/28e654cdf8e6> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Whiteboard: [needs review]
in reply to comment #6: But then "currentTask" should also refer to the active task and not to the selected. When I look at the code again I see that there is even a "selectedTasks" property that you could have used as well.
I didn't want *all* selected tasks, but the currently active task that is selected. I don't think it makes sense to display the task information when it is not selected. I don't really mind though, do you really think we should change this back?
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: