зеркало из https://github.com/mozilla/gecko-dev.git
Bug 341436: Don't pass null to GetResource to avoid "ASSERTION: URI is empty: '!aURI.IsEmpty()'" patch by Alex Vincent <ajvincent@gmail.com>, r+sr=Neil
This commit is contained in:
Родитель
658e559208
Коммит
ac25423a1a
|
@ -859,7 +859,10 @@ function IsRenameFolderEnabled()
|
|||
|
||||
function IsCanSearchMessagesEnabled()
|
||||
{
|
||||
var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), false);
|
||||
var folderURI = GetSelectedFolderURI();
|
||||
if (!folderURI)
|
||||
return false;
|
||||
var folder = GetMsgFolderFromUri(folderURI, false);
|
||||
var isVirtualFolder = folder.flags & MSG_FOLDER_FLAG_VIRTUAL;
|
||||
return folder.server.canSearchMessages && !isVirtualFolder;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче