Bug 262892 In mail3PaneWindowCommands.js, 'Warning: redeclaration of var parentResource' (Bv1-TB) p=Serge Gautherie <sgautherie.bz@free.fr>,r=bryner,sr=mscott

This commit is contained in:
bugzilla%standard8.demon.co.uk 2007-04-27 12:29:50 +00:00
Родитель cb145f2948
Коммит fa4657e02a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -923,12 +923,14 @@ function MsgDeleteFolder()
var specialFolder = GetFolderAttribute(folderTree, folderResource, "SpecialFolder");
if (specialFolder != "Inbox" && specialFolder != "Trash")
{
var parentResource;
var folder = selectedFolder.QueryInterface(Components.interfaces.nsIMsgFolder);
if (folder.flags & MSG_FOLDER_FLAG_VIRTUAL)
{
if (gCurrentVirtualFolderUri == folderResource.Value)
gCurrentVirtualFolderUri = null;
var parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
messenger.DeleteFolders(GetFolderDatasource(), parentResource, folderResource);
continue;
}
@ -955,7 +957,7 @@ function MsgDeleteFolder()
}
else
{
var parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
messenger.DeleteFolders(GetFolderDatasource(), parentResource, folderResource);
}
}