Closed Bug 1924977 Opened 1 year ago Closed 1 year ago

Missing edit menu entries when group header is selected in "grouped by sort" view

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 115
defect

Tracking

(thunderbird_esr115 wontfix, thunderbird_esr128 wontfix, thunderbird136 affected)

RESOLVED FIXED
137 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird_esr128 --- wontfix
thunderbird136 --- affected

People

(Reporter: francesco, Assigned: welpy-cw)

References

Details

Attachments

(3 files)

Attached image edit-menu.png

STR:
Start TB into a folder which is unthreaded and sorted by date.
View > Sort By > Grouped by sort. Collapse all. Click on group header.
Use Edit menu, it has empty entries, see screenshot.

There are quite a few errors in the error console.

Tested in 132.0b4, but also reproducible in 115 and 128.

Summary: Missing edit menu entries when group header is selected in "grouped by sort" view, changing to unthreaded afterwards doesn't work → Missing edit menu entries when group header is selected in "grouped by sort" view
  • Disable cmd_selectThread for grouped views as this would lead to an invalid selection and is semantically incorrect anyway.
  • Disable cmd_watchThread, cmd_killThread, and cmd_killSubthread for grouped views.
Assignee: nobody → h.w.forms
Attachment #9431301 - Attachment description: WIP: Bug 1924977 - Fix main menu for selected group headers. → Bug 1924977 - Fix main menu for selected group headers. r=#thunderbird-reviewers
Status: NEW → ASSIGNED
  • Use the same algorithm for single folder and search db views and remove nsMsgSearchDBView::GetHdrForFirstSelectedMessage().
  • For expanded Grouped By Sort header rows, return null instead of the message header for the first message below.
  • Do not count Grouped By Sort header rows in nsMsgDBView::GetNumSelected.
  • Remove nsMsgDBView::GetKeyForFirstSelectedMessage() as this is now used only once and can be easily replaced.
Attachment #9431301 - Attachment description: Bug 1924977 - Fix main menu for selected group headers. r=#thunderbird-reviewers → Bug 1924977 - Disable some thread-related commands for grouped views. r=#thunderbird-reviewers
Severity: -- → S3
Target Milestone: --- → 137 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c1fd627d14cc
Disable some thread-related commands for grouped views. r=mkmelin

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/ce7265270047
Refactor hdrForFirstSelectedMessage and numSelected. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Regressions: 1977321
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: