Trash folder picker not disabled in account manager -> imap account -> server settings when "Just mark it as deleted" is selected
Categories
(MailNews Core :: Account Manager, defect)
Tracking
(Not tracked)
People
(Reporter: aceman, Assigned: aceman)
References
Details
(Keywords: regression, Whiteboard: [patchlove][regression:tb29])
Attachments
(1 file)
861 bytes,
patch
|
Details | Diff | Splinter Review |
Hi, alta, you added this line in bug 878805, do you remember the use case that it wanted to cover?
Comment on attachment 9036061 [details] [diff] [review]
1028535.patch
if a dialog with a folderpicker was showing, and there were no subfolders, the parent menupopup would be disabled. if a subfolder were then created i would think the new subfolder should be discovered and so the parent menupopup should no longer be disabled. i don't know the conditions under which these menus are torn down anymore, perhaps a folder added notification causes a teardown/rebuild of the whole thing or just the parent menu. if you try that and it works without that line, then it can go, otherwise no.
i don't know the status of rdf anymore, but it used to be that the cache falsely returned a folder that was deleted from the filesystem (without a restart). so picking it would fail when it was accessed on disk later. meaning a folder should really be tested with exists() or something for this edge case when actually picking a folder (if not when populating the menus).
OK, that seems useful to enable the picker if a folder becomes available.
So we want the picker to manage itself, but not if the parent disabled it intentionally. Then it should not enable itself.
So either we invent a new attribute (not named "disabled") that the caller sets, or we add an internal property that tracks whether the picker disabled itself or whether it was done externally.
or have a container that could be disabled (separately and by caller) which state was inherited by the child menu. at least you can do this with html <fieldset> ;)
Updated•3 years ago
|
Description
•