Bug 593525 cmd_markAsFlagged button_file and cmd_file do not depend on archiving r=Mnyromyr
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sun, 26 Dec 2010 00:00:31 +0000
changeset 6880 8310ed9cac86d434bc7307954607bf62ef2354a3
parent 6879 d0d0f541057a1eeb1d6cae8e06c2848bf1faa78f
child 6881 0d0dd81c5eab455ba1121883a977b2f5431cd604
push idunknown
push userunknown
push dateunknown
reviewersMnyromyr
bugs593525
Bug 593525 cmd_markAsFlagged button_file and cmd_file do not depend on archiving r=Mnyromyr
suite/mailnews/mail3PaneWindowCommands.js
--- a/suite/mailnews/mail3PaneWindowCommands.js
+++ b/suite/mailnews/mail3PaneWindowCommands.js
@@ -344,16 +344,17 @@ var DefaultController =
            return enabled.value;
         }
         return false;
       case "cmd_printSetup":
         return true;
       case "cmd_markAsFlagged":
       case "button_file":
       case "cmd_file":
+        return GetNumSelectedMessages() > 0;
       case "cmd_archive":
         let selectedMessages = gFolderDisplay.selectedMessages;
         if (selectedMessages.length == 0)
           return false;
         // If the server of the first message's folder is configured to keep
         // the folder structure on archiving, check that we're not in the Archive
         // folder or below it. Otherwise allow re-archiving, e.g. in case the
         // user switched from monthly to yearly archiving.