add:  gQSViewIsDirty = true; onEnterInSearchBar(); 
context: function viewChange(aMenuList){  var val = aMenuList.value;  // bail out early if the user picked the same view  // (unless they picked "Customize...")  if (val == gCurrentViewValue && val != "7")     return;   GetSearchInput();  // switching views, clear out the quick search text  gSearchInput.value = "";  // remember the previous view value  // in case they do "Customize..." and then cancel  // in which case we'll restore to the previous view value  gOldViewValue = gCurrentViewValue;  gCurrentViewValue = val;  switch (val)  {   case "0": // View All     gDefaultSearchViewTerms = null;     onClearSearch();      break;   case "1": // Unread     ViewNewMail();     break;   case "2":   case "3":   case "4":   case "5":   case "6":     ViewLabel(parseInt(val) - 1);     break;   case "7":     LaunchCustomizeDialog();     break;   default:     LoadCustomMailView(parseInt(val) - gLastDefaultViewIndex);     break;  } //      }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b62e15d014d717e60498db77ccfdef3806059d3/msgViewPickerOverlay.js/buggy/mailnews/extensions/mailviews/resources/content/msgViewPickerOverlay.js