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 25773 3c16d99d9998a2cac448befcbedc84681448f866
parent 25772 6d8eb2a47e738a7f22950cfb6a0e9311b295907e
child 25774 0d48ec44636ba476446a3a95e7461b91480f8385
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);