Closed Bug 1815028 Opened 1 year ago Closed 1 year ago

creating saved search adds the virtual folder twice

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 111
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird112 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird112 --- fixed

People

(Reporter: mkmelin, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

File | New | Saved Search.
Enter a criteria and name the folder "test". After Ok, you now have two "test" folders showing - one marked as virual folder and one as normal folder. After restart both are marked as virtual, though of course there should only be one.

Whiteboard: [Supernova]
Severity: -- → S3
See Also: → 1819859
Blocks: 1819859
Duplicate of this bug: 1819859
See Also: 1819859

Still seeing this?

Flags: needinfo?(mkmelin+mozilla)

With 112 2023-03-13 I see two folders, one has the special virtual folder icon, and one does not

Flags: needinfo?(mkmelin+mozilla)

When virtual folders are created, onFolderAdded is called a second time.

Rows should not be added to the tree if they already exist, but they should have their properties updated (in this case to add the "virtual" folder type).

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9322910 - Attachment description: Bug 1815028 - Avoid duplicate folders appearing in the tree if onFolderAdded is called twice. r=#thunderbird-reviewers → Bug 1815028 - Avoid duplicate folders appearing in the tree if onFolderAdded is called twice. r=mkmelin,aleca

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b74f8c08ebc4
Avoid duplicate folders appearing in the tree if onFolderAdded is called twice. r=mkmelin,aleca

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Attachment #9322910 - Flags: approval-comm-beta?

Comment on attachment 9322910 [details]
Bug 1815028 - Avoid duplicate folders appearing in the tree if onFolderAdded is called twice. r=mkmelin,aleca

[Triage Comment]
Approved for beta

Attachment #9322910 - Flags: approval-comm-beta? → approval-comm-beta+
Whiteboard: [Supernova] → [Supernova3p]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: