rem: if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort) gDBView.viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay); CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder); 
add: var viewFlags = gDBView.viewFlags; if (viewFlags & nsMsgViewFlagsType.kGroupBySort) viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay); CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, viewFlags, gDBView.sortType, gDBView.sortOrder); 
context: function createQuickSearchView(){  //if not already in quick search view   if (gDBView.viewType != nsMsgViewType.eShowQuickSearchResults)    {    var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView);  //clear selection    if (treeView && treeView.selection)      treeView.selection.clearSelection();    gPreQuickSearchView = gDBView;    if (gDBView.viewType == nsMsgViewType.eShowVirtualFolderResults)    {      // remove the view as a listener on the search results      var saveViewSearchListener = gDBView.QueryInterface(Components.interfaces.nsIMsgSearchNotify);      gSearchSession.unregisterListener(saveViewSearchListener);    }    // if grouped by sort, turn that off, as well as threaded, since we don't    // group quick search results yet.    if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort)      gDBView.viewFlags &= ~(nsMsgViewFlagsType.kGroupBySort | nsMsgViewFlagsType.kThreadedDisplay);    CreateDBView(gDBView.msgFolder, (gXFVirtualFolderTerms) ? nsMsgViewType.eShowVirtualFolderResults : nsMsgViewType.eShowQuickSearchResults, gDBView.viewFlags, gDBView.sortType, gDBView.sortOrder);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/af19678e468dc68b4e8028ad49a45162cb3b384a/searchBar.js/clean/mail/base/content/searchBar.js