Bug 1136696 - If size of folder is 0, show empty cell in Seamonkey's RDFized folder pane again. Regression from bug 789679. r=Neil a=Ratty CLOSED TREE
authoraceman <acelists@atlas.sk>
Fri, 06 Mar 2015 01:10:06 +0800
changeset 25732 f80ed9184e2d24ab2cb90a00ef3b3648192db57c
parent 25731 c0f2e1ea004cfab45f2c8fa250d5b2c765a5b196
child 25733 8a0c1e39ec46d54517aadf4c57606cb9543db1c0
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, Ratty
bugs1136696, 789679
Bug 1136696 - If size of folder is 0, show empty cell in Seamonkey's RDFized folder pane again. Regression from bug 789679. r=Neil a=Ratty CLOSED TREE
mailnews/base/src/nsMsgFolderDataSource.cpp
--- a/mailnews/base/src/nsMsgFolderDataSource.cpp
+++ b/mailnews/base/src/nsMsgFolderDataSource.cpp
@@ -1789,17 +1789,17 @@ nsMsgFolderDataSource::GetNumMessagesNod
     createIntNode(numMessages, node, getRDFService());
   return NS_OK;
 }
 
 nsresult
 nsMsgFolderDataSource::GetFolderSizeNode(int64_t aFolderSize, nsIRDFNode **aNode)
 {
   nsresult rv;
-  if (aFolderSize == kDisplayBlankCount64)
+  if (aFolderSize == kDisplayBlankCount64 || aFolderSize == 0)
     createNode(EmptyString().get(), aNode, getRDFService());
   else if (aFolderSize == kDisplayQuestionCount64)
     createNode(MOZ_UTF16("???"), aNode, getRDFService());
   else
   {
     nsAutoString sizeString;
     rv = FormatFileSize(aFolderSize, true, sizeString);
     NS_ENSURE_SUCCESS(rv, rv);