diff --git a/mozilla/mailnews/base/resources/content/commandglue.js b/mozilla/mailnews/base/resources/content/commandglue.js index f2d840fe12c..17d6a5059cf 100644 --- a/mozilla/mailnews/base/resources/content/commandglue.js +++ b/mozilla/mailnews/base/resources/content/commandglue.js @@ -415,18 +415,27 @@ function LoadSelectionIntoMessagePane() if ( selArray && (selArray.length == 1) ) LoadMessage(selArray[0]); else - ClearMessagePane(); + { + // don't necessarily clear the message pane...if you uncomment this, + // you'll be introducing a large inefficiency when deleting messages...as deleting + // a msg brings us here twice...so we end up clearing the message pane twice for no + // good reason... + // ClearMessagePane(); + } } function FolderPaneSelectionChange() { var tree = GetFolderTree(); - if(tree) { var selArray = tree.selectedItems; if ( selArray && (selArray.length == 1) ) + { ChangeFolderByDOMNode(selArray[0]); + // explicitly force the message pane to get cleared when we switch folders + ClearMessagePane(); + } else { var threadTree = GetThreadTree();