mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
4c18fa1dda
commit
c4244eaf64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user