Closed Bug 391701 Opened 17 years ago Closed 17 years ago

Cleanup UI code for deleting messages

Categories

(SeaMonkey :: MailNews: Message Display, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

During work for bug 49323, I found a few possibilities to clean up the code. This bug is for doing that work.
Assignee: mail → aqualon
Severity: normal → enhancement
Status: ASSIGNED → NEW
Depends on: 49323
OS: Windows XP → All
QA Contact: mail
Hardware: PC → All
Attached patch WIP patch (obsolete) — Splinter Review
WIP Patch needs the change from attachment 276131 [details] [diff] [review].
Note: patch still needs the attachment from bug 49323 like stated in my previous comment.

What is done by this patch:

- Fix shift-delete behaviour to delete the message folder, when there's one focused and not the selected message in that folder (see bug 49323 comment 20).
- Change unused function MsgDeleteMessage(reallyDelete, fromToolbar) to MsgDeleteMessage(reallyDelete).
- Call MsgDeleteMessage(reallyDelete) in the DefaultController instead of executing the code directly there.
- Remove function MsgDeleteMessageFromMessageWindow(reallyDelete, fromToolbar) from messageWindow.js since MsgDeleteMessage(reallyDelete) does the same thing already.
- Fix some indentation glitches.
Attachment #276181 - Attachment is obsolete: true
Attachment #276366 - Flags: superreview?(neil)
Attachment #276366 - Flags: review?(mnyromyr)
Attachment #276366 - Flags: superreview?(neil) → superreview+
Comment on attachment 276366 [details] [diff] [review]
Cleanup UI code and fix shift-delete behaviour for selected folders

Landed on trunk.
Attachment #276366 - Flags: review?(mnyromyr) → review+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: