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 RELEASE_36_END
authoraceman <acelists@atlas.sk>
Fri, 06 Mar 2015 01:10:06 +0800
changeset 31138 dca6247fed66692d01d0654ea7fdea726b31ce08
parent 31137 b1a671eb4b4bfc5f91967646bfcd44f0b4271967
child 31139 8e0ef919847188d5903cf541e2f18da4d533dc7f
child 31142 044b6b0de5ce703f8cfa0f9bc4024f567af6dfc4
child 31145 df7cbf3653aa144ecf0817966e470c8044a04d1e
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [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);