rem:  gDeleteButton.disabled = !oneFilterSelected; 
add:  gDeleteButton.disabled = !numFiltersSelected; 
context: function updateButtons(){    var numFiltersSelected = gFilterTree.view.selection.count;    var oneFilterSelected = (numFiltersSelected == 1);    var filter = currentFilter();    // "edit" only enabled when one filter selected or if we couldn't parse the filter    gEditButton.disabled = !oneFilterSelected || filter.unparseable;        // "delete" only enabled when one filter selected    gDeleteButton.disabled = !oneFilterSelected;    // we can run multiple filters on a folder    // so only disable this UI if no filters are selected    gRunFiltersFolderPickerLabel.disabled = !numFiltersSelected;    gRunFiltersFolderPicker.disabled = !numFiltersSelected;    gRunFiltersButton.disabled = !numFiltersSelected;    // "up" enabled only if one filter selected, and it's not the first    gReorderUpButton.disabled = !(oneFilterSelected && gFilterTree.currentIndex > 0);    // "down" enabled only if one filter selected, and it's not the last    gReorderDownButton.disabled = !(oneFilterSelected && gFilterTree.currentIndex < gFilterTree.view.rowCount-1);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/7d2f6caccdc4e37955b4c3ed61ead606f66fb085/FilterListDialog.js/buggy/mail/base/content/FilterListDialog.js