зеркало из https://github.com/mozilla/gecko-dev.git
fix 369160 empty tooltip on folders w/o new messages, sr=mscott
This commit is contained in:
Родитель
1b49d48664
Коммит
b291693294
|
@ -2061,6 +2061,7 @@
|
|||
}
|
||||
else
|
||||
folderArray[0] = aFolder;
|
||||
var foundNewMsg = false;
|
||||
for (var folderIndex = 0; folderIndex < folderArray.length; folderIndex++)
|
||||
{
|
||||
aFolder = folderArray[folderIndex];
|
||||
|
@ -2097,6 +2098,7 @@
|
|||
var unicodeConverter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"]
|
||||
.createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
|
||||
unicodeConverter.charset = "UTF-8";
|
||||
foundNewMsg = true;
|
||||
|
||||
var index = 0;
|
||||
var hdrParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser);
|
||||
|
@ -2126,7 +2128,7 @@
|
|||
if (document.getAnonymousNodes(this)[0].childNodes.length >= this.mMaxMsgHdrsInPopup)
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return foundNewMsg;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
Загрузка…
Ссылка в новой задаче