rem: if (gCurrentVirtualFolderUri && gCurrentVirtualFolderUri != "") 
add: if (gCurrentVirtualFolderUri && (gSearchInput.value == "" || gSearchInput.showingSearchCriteria)) 
context:     onSearchDone: function(status)    {        SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount)        statusFeedback.showProgress(0);        gStatusBar.setAttribute("mode","normal");        gSearchInProgress = false;        // ### TODO need to find out if there's quick search within a virtual folder.        if (gCurrentVirtualFolderUri && gCurrentVirtualFolderUri != "")        {          var vFolder = GetMsgFolderFromUri(gCurrentVirtualFolderUri, false);          var dbFolderInfo = vFolder.getMsgDatabase(msgWindow).dBFolderInfo;          dbFolderInfo.NumUnreadMessages = gNumUnreadMessages;          dbFolderInfo.NumMessages = gNumTotalMessages;          vFolder.updateSummaryTotals(true); // force update from db.          var msgdb = vFolder.getMsgDatabase(msgWindow);          msgdb.Commit(MSG_DB_LARGE_COMMIT);        }    },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/6c0b0afe7e1268a89504eca60c78622b104f24a5/searchBar.js/buggy/mailnews/base/resources/content/searchBar.js