fix js error that you can get if you do a message search, and then delete a message

from another mail window before doing a search.  bug #186600.  r/sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2002-12-23 22:14:03 +00:00
parent 4c18fa1dda
commit c4244eaf64

View File

@ -584,7 +584,13 @@ function HandleDeleteOrMoveMessageCompleted(folder)
// this can happen when the user
// deletes message from the stand alone msg window
// or the three pane
if (treeSelection.count == 0) {
if (!treeSelection) {
// this can happen if you open the search window
// and before you do any searches
// and you do delete from another mail window
return;
}
else if (treeSelection.count == 0) {
// this can happen if you double clicked a message
// in the thread pane, and deleted it from the stand alone msg window
// see bug #185147