Bug 490749 - File/New/Saved Search produces exception, if no account/no folder is selected at folder pane (Error: folder is undefined Source File: chrome://messenger/content/folderPane.js Line: 1463). r=bwinton
This commit is contained in:
Родитель
fd6d4ae10b
Коммит
6918d565ff
|
@ -2315,6 +2315,9 @@ let gFolderTreeController = {
|
|||
*/
|
||||
newVirtualFolder: function ftc_newVFolder(aName, aSearchTerms, aParent) {
|
||||
let folder = aParent || gFolderTreeView.getSelectedFolders()[0];
|
||||
if (!folder)
|
||||
folder = GetDefaultAccountRootFolder();
|
||||
|
||||
let name = folder.prettyName;
|
||||
if (aName)
|
||||
name += "-" + aName;
|
||||
|
|
Загрузка…
Ссылка в новой задаче