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

git-svn-id: svn://10.0.0.236/trunk@225142 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugzilla%standard8.demon.co.uk
2007-04-27 12:29:50 +00:00
parent 18858ba7f5
commit 56ca63d41e

View File

@@ -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);
}
}