fix for bug #73515. delete button should disable in advanced news searches

(as we don't allow you to delete (cancel) from that dialog.)

r/sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2002-12-13 06:52:18 +00:00
Родитель 0c9c71b1b7
Коммит edc0552e70
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -79,6 +79,11 @@ var nsSearchResultsController =
if (GetNumSelectedMessages() != 1)
enabled = false;
break;
case "button_delete":
// this assumes that advanced searches don't cross accounts
if (GetNumSelectedMessages() <= 0 || isNewsURI(gSearchView.getURIForViewIndex(0)))
enabled = false;
break;
default:
if (GetNumSelectedMessages() <= 0)
enabled = false;