Closed
Bug 98722
Opened 24 years ago
Closed 23 years ago
mail js code assumes multiselection folder pane
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: neil, Assigned: sspitzer)
Details
My understanding is that the folder pane is single selection. This means that
code along these lines (this function in commandglue.js is actually redundant)
function GetSelectedFolderResource()
{
var folderOutliner = GetFolderOutliner();
var startIndex = {};
var endIndex = {};
folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex);
return GetFolderResource(folderOutliner, startIndex.value);
}
could actually be written
function GetSelectedFolderResource()
{
var folderOutliner = GetFolderOutliner();
return GetFolderResource(folderOutliner, folderOutliner.currentIndex);
}
Where you compare e.g. startIndex >= 0 you can use currentIndex there as well.
Many functions call GetSelectedFolders not realising that it returns one folder.
These functions could all be rewritten and the loops removed.
Comment 1•24 years ago
|
||
Sometime in the future we'll want to support multiple selection of folders. This
was to lessen the pain for that day (forwards compability).
Comment 2•23 years ago
|
||
Giving the comment #1, shouldn't this bug have been closed a long time ago ?
It has not been touched since 2001-09-07
Reporter | ||
Comment 3•23 years ago
|
||
Invalid because the right-click code now depends on this behaviour.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
QA Contact: esther → stephend
verified. thanks for the explanation, neil
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•