fix for #161371. js errors to the console when opening the edit menu when a server is selected in the folder pane. r/sr=bienvenu

This commit is contained in:
sspitzer%netscape.com 2002-08-07 07:01:25 +00:00
parent 9c0a79ef87
commit 684e3d5957

View File

@ -1618,6 +1618,12 @@ function CommandUpdate_UndoRedo()
function SetupUndoRedoCommand(command)
{
var loadedFolder = GetLoadedMsgFolder();
// if we have selected a server, and are viewing account central
// there is no loaded folder
if (!loadedFolder)
return false;
var server = loadedFolder.server;
if (!(server.canUndoDeleteOnServer))
return false;