fix smart archives folder to use archive icon, r/sr=standard8, 496562
authorDavid Bienvenu <bienvenu@nventure.com>
Mon, 08 Jun 2009 07:42:47 -0700
changeset 2799 07db45168a3a911725b32baca27077abb3d41664
parent 2798 f25ae049f3f673a6f6cd1b8ba607aec46d6578c8
child 2800 8cc20299e7c32a58c4c9a0b2b23e2429dc0e5b2a
push idunknown
push userunknown
push dateunknown
bugs496562
fix smart archives folder to use archive icon, r/sr=standard8, 496562
mailnews/base/util/folderUtils.jsm
--- a/mailnews/base/util/folderUtils.jsm
+++ b/mailnews/base/util/folderUtils.jsm
@@ -57,20 +57,20 @@ function getSpecialFolderString(aFolder)
   if (aFolder.flags & Ci.nsMsgFolderFlags.SentMail)
     return "Sent";
   if (aFolder.flags & Ci.nsMsgFolderFlags.Drafts)
     return "Drafts";
   if (aFolder.flags & Ci.nsMsgFolderFlags.Templates)
     return "Templates";
   if (aFolder.flags & Ci.nsMsgFolderFlags.Junk)
     return "Junk";
+  if (aFolder.flags & Ci.nsMsgFolderFlags.Archive)
+    return "Archive";
   if (aFolder.flags & Ci.nsMsgFolderFlags.Virtual)
     return "Virtual";
-  if (aFolder.flags & Ci.nsMsgFolderFlags.Archive)
-    return "Archive";
   return "none";
 }
 
 /**
  * This function is meant to be used with trees. It adds atoms for all of the
  * common properties that css styling is based off of.
  *
  * @param aFolder     the folder whose properties should be added as atoms