Closed Bug 362349 Opened 18 years ago Closed 18 years ago

suppressMsgDisplay should only force display when exactly one message is selected

Categories

(MailNews Core :: Backend, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

At the moment switching suppressMsgDisplay from true to false loads the first selected message, even if multiple messages are selected. This prevents correct behaviour of enabling the Message Pane (found during work for bug 352696).

Patch to come.
With this patch unhiding the Message Pane only loads a message if numSelected is 1. This is the same behaviour as marking multiple messages in SeaMonkey (no message gets loaded).

I also trimmed the (mSuppressMsgDisplay && (mSuppressMsgDisplay != aSuppressDisplay)) if-clause, cause that's only true when mSuppressMsgDisplay is true and aSuppressDisplay is false, so querying !aSuppressDisplay instead of mSuppressMsgDisplay != aSuppressDisplay is enough.

David, can you please have a closer look if this breaks anything in Thunderbird since this is shared code?
Attachment #247056 - Flags: superreview?(bienvenu)
Attachment #247056 - Flags: review?(neil)
Status: NEW → ASSIGNED
Attachment #247056 - Attachment description: forceUpload only for exactly one selected message → forceDisplay only for exactly one selected message
Comment on attachment 247056 [details] [diff] [review]
forceDisplay only for exactly one selected message

forceDisplay of course...
Attachment #247056 - Flags: review?(neil) → review+
Attachment #247056 - Flags: superreview?(bienvenu) → superreview+
Landed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: