rem: gDBView.reloadFolderAfterQuickSearch(); var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView); if (outlinerView) { var outliner = GetThreadOutliner(); outliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject).view = outlinerView; } restoreSelection(); 
add: gDBView.reloadFolderAfterQuickSearch(); 
context: function onEnterInSearchBar(){   if (!gDBView)      return;   ClearThreadPaneSelection();   ClearMessagePane();   if (!gSearchSession)   {     getDocumentElements();     var searchSessionContractID = "@mozilla.org/messenger/searchSession;1";     gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);     initializeGlobalListeners();   }   else   {     if (gSearchInProgress)     {       onSearchStop();       gSearchInProgress = false;     }     removeListeners();   }   if (gSearchInput.value == "")    {     var searchView = gDBView.isSearchView;     if (searchView)     {       statusFeedback.showStatusString("");       gDBView.reloadFolderAfterQuickSearch(); // that should have initialized gDBView, now re-root the thread pane       var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);       if (outlinerView)       {         var outliner = GetThreadOutliner();         outliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject).view = outlinerView;       }       restoreSelection();     }     return;   }   addListeners();   onSearch();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6df82ef82fb73d533ae171aac4be3eae067099e5/searchBar.js/buggy/mailnews/base/resources/content/searchBar.js