Closed
Bug 450712
Opened 17 years ago
Closed 17 years ago
"INBOX" is always displayed as selected folder name of "When I delete a message/Move it to this folder"
Categories
(Thunderbird :: Account Manager, defect)
Thunderbird
Account Manager
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b1
People
(Reporter: World, Assigned: mkmelin)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
3.14 KB,
patch
|
mkmelin
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Checked with Tb Trunk 2008/8/14 build on MS Win-XP SP3.
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080814031842 Shredder/3.0b1pre
"INBOX" is always displayed as selected folder name of "When I delete a message / Move it to this folder".
(1) Choose "When I delete a message/Move it to this folder",
and select "Trash" folder at selection list.
=> "Trash" is set in mail.server.serverX.trash_folder_name as expected
(2) Close "Server Settings" panel
(3) Open "Server Settings" panel => INBOX is always displayed as chosen folder
mail.server.serverX.trash_folder_name is not modified until other folder is intentionally selected via selection list. So UI only issue.
| Assignee | ||
Comment 1•17 years ago
|
||
See it on linux too. I think it's basically the same as bug 437056 (~ same code), at least if trash is a subfolder. I see it without it being a subfolder also though.
| Reporter | ||
Comment 2•17 years ago
|
||
I think good fiend of bug 437056 is Bug 427311, instead of this bug.
| Assignee | ||
Updated•17 years ago
|
Flags: blocking-thunderbird3+
| Assignee | ||
Updated•17 years ago
|
Assignee: nobody → mkmelin+mozilla
| Assignee | ||
Comment 4•17 years ago
|
||
This fixes this regression, but not bug 427311 (which never worked).
It seems there were several issues here
- didn't update the widget after selecting => subfolder couldn't be selected
- in the selectFolder method the isAncestorOf stuff looks bogus to me, and that was causing the inbox to always get reselected after reopening preferences
Attachment #340392 -
Flags: superreview?(bienvenu)
Attachment #340392 -
Flags: review?(bienvenu)
| Assignee | ||
Comment 5•17 years ago
|
||
Joey: can you take a look at the fix also?
Updated•17 years ago
|
Attachment #340392 -
Flags: superreview?(neil)
Attachment #340392 -
Flags: superreview?(bienvenu)
Attachment #340392 -
Flags: review?(bienvenu)
Attachment #340392 -
Flags: review+
Comment 6•17 years ago
|
||
Comment on attachment 340392 [details] [diff] [review]
proposed fix
this looks ok to me, Thx, Magnus. I'll let Neil look at it, though.
one nit - I don't think you need the temp var here:
+ // Set the value to be persisted.
+ var hiddenLabel = document.getElementById("imap.trashFolderName");
+ hiddenLabel.setAttribute("value", folder.name);
Comment 7•17 years ago
|
||
Comment on attachment 340392 [details] [diff] [review]
proposed fix
> function folderPickerChange(aEvent)
> {
>+ var folder = aEvent.target._folder;
>+
>+ // Set the value to be persisted.
>+ var hiddenLabel = document.getElementById("imap.trashFolderName");
>+ hiddenLabel.setAttribute("value", folder.name);
>+
>+ // Update the widget to show/do correct things even for subfolders.
>+ var trashFolderPicker = document.getElementById("msgTrashFolderPicker");
>+ trashFolderPicker._folder = folder;
>+ trashFolderPicker.setAttribute("label", folder.prettyName);
I don't understand this, the event target should already be the folder picker.
| Assignee | ||
Comment 8•17 years ago
|
||
Actually no, msgTrashFolderPicker is the menulist, the event target is a node in the menupopup (msgTrashFolderPopup).
Without this change, you can't set the trash folder to a top level folder that has subfolders - since you'd select "choose this folder" in a sub popup.
Comment 9•17 years ago
|
||
Comment on attachment 340392 [details] [diff] [review]
proposed fix
>+ trashFolderPicker._folder = folder;
OK, so what does this do?
| Assignee | ||
Comment 10•17 years ago
|
||
Well, since we don't use the value from the picker anywhere later, nothing.
| Assignee | ||
Comment 11•17 years ago
|
||
Carrying fwd r=bienvenu
Attachment #340392 -
Attachment is obsolete: true
Attachment #340622 -
Flags: superreview?(neil)
Attachment #340622 -
Flags: review+
Attachment #340392 -
Flags: superreview?(neil)
Updated•17 years ago
|
Attachment #340622 -
Flags: superreview?(neil) → superreview+
| Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird 3.0b2
| Assignee | ||
Comment 12•17 years ago
|
||
changeset: 512:06222c5c8bf1
http://hg.mozilla.org/comm-central/rev/06222c5c8bf1
->FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 13•17 years ago
|
||
This isn't fixed for me on Shredder 20081006095651.
Selecting subfolder "[Gmail]/Trash" won't work, reverts to last selected top level folder.
| Assignee | ||
Comment 14•17 years ago
|
||
Is that a nightly, or alpha3? This didn't make alpha3.
Comment 15•17 years ago
|
||
Alpha 3 :-)
You need to log in
before you can comment on or make changes to this bug.
Description
•