rem: (gSearchInput.value == "" || gSearchInput.showingSearchCriteria)) 
add: (!gSearchInput || gSearchInput.value == "" || gSearchInput.showingSearchCriteria)) 
context:     onSearchDone: function(status)    {        SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount)        statusFeedback.showProgress(0);        gStatusBar.setAttribute("mode","normal");        gSearchInProgress = false;        viewDebug("gSearchInput = " + gSearchInput.value + "\n");        // ### TODO need to find out if there's quick search within a virtual folder.        if (gCurrentVirtualFolderUri &&         (gSearchInput.value == "" || gSearchInput.showingSearchCriteria))        {          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);          // load the last used mail view for the folder...          var result = dbFolderInfo.getUint32Property("current-view", 0);          ViewChangeByValue(result);          // now that we have finished loading a virtual folder, scroll to the correct message          ScrollToMessageAfterFolderLoad(vFolder);        }    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/3d2a07b1bb4fe53a47005fdb8dbee5b6978c8b84/searchBar.js/clean/mail/base/content/searchBar.js