rem: else if(!gThreadPaneDeleteOrMoveOccurred && (treeSelection.currentIndex < 0)) 
add: else if(treeSelection.currentIndex < 0) 
context: function RestoreSelectionWithoutContentLoad(tree){    var treeBoxObj = tree.treeBoxObject;    var treeSelection = treeBoxObj.selection;    // make sure that currentIndex is valid so that we don't try to restore    // a selection of an invalid row.    if((!treeSelection.isSelected(treeSelection.currentIndex)) &&       (treeSelection.currentIndex >= 0))    {        treeSelection.selectEventsSuppressed = true;        treeSelection.select(treeSelection.currentIndex);        treeSelection.selectEventsSuppressed = false;        // Keep track of which row in the thread pane is currently selected.        // This is currently only needed when deleting messages.  See        // declaration of var in msgMail3PaneWindow.js.        if(tree.id == "threadTree")          gThreadPaneCurrentSelectedIndex = treeSelection.currentIndex;    }    else if(!gThreadPaneDeleteOrMoveOccurred && (treeSelection.currentIndex < 0))        // Clear the selection in the case of when a folder has just been        // loaded where the message pane does not have a message loaded yet.        // When right-clicking a message in this case and dismissing the        // popup menu (by either executing a menu command or clicking        // somewhere else),  the selection needs to be cleared.        // However, if the 'Delete Message' or 'Move To' menu item has been        // selected, DO NOT clear the selection, else it will prevent the        // tree view from refreshing.        treeSelection.clearSelection();    // Need to reset gRightMouseButtonDown to false here because    // TreeOnMouseDown() is only called on a mousedown, not on a key down.    // So resetting it here allows the loading of messages in the messagepane    // when navigating via the keyboard or the toolbar buttons *after*    // the context menu has been dismissed.    gRightMouseButtonDown = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0eaa26ca9bc1869416af603ba435688e3c628d49/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js