mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
fix js warnings, 262892 patch by gautheri@noos.fr, r/sr=bienvenu
This commit is contained in:
parent
7277c991a7
commit
0008992dce
@ -915,12 +915,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;
|
||||
}
|
||||
@ -947,7 +949,7 @@ function MsgDeleteFolder()
|
||||
}
|
||||
else
|
||||
{
|
||||
var parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
|
||||
parentResource = selectedFolder.parent.QueryInterface(Components.interfaces.nsIRDFResource);
|
||||
messenger.DeleteFolders(GetFolderDatasource(), parentResource, folderResource);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user