Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 29 Mar 2016 02:18:35 +0800
changeset 24719 9499eb58d87c51d4b130eaf65c512b7a84cdf77f
parent 24718 ee46eb6e3238b73d12bf2f79b12d2646b6684ab3
child 24720 3a61e85a78fe0e877529568ca9dd5da9e00d57d2
push id1657
push userclokep@gmail.com
push dateMon, 06 Jun 2016 19:50:21 +0000
treeherdercomm-beta@9fac989284b5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Ratty
bugs1260035
Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE
suite/mailnews/mailWindowOverlay.js
--- a/suite/mailnews/mailWindowOverlay.js
+++ b/suite/mailnews/mailWindowOverlay.js
@@ -152,17 +152,17 @@ function view_init()
     view_menuitem.setAttribute("disabled", gAccountCentralLoaded);
 
   var threads_menuitem = document.getElementById("viewMessagesMenu");
   if (threads_menuitem)
     threads_menuitem.setAttribute("disabled", gAccountCentralLoaded);
 
   var charset_menuitem = document.getElementById("charsetMenu");
   if (charset_menuitem)
-    charset_menuitem.setAttribute("disabled", !msgWindow.mailCharacterSet);
+    charset_menuitem.setAttribute("disabled", !gMessageDisplay.displayedMessage);
 
   // Initialize the Message Body menuitem
   var isFeed = gFolderDisplay.selectedMessageIsFeed;
   document.getElementById('viewBodyMenu').hidden = isFeed;
 
   // Initialize the Show Feed Summary menu
   var viewFeedSummary = document.getElementById('viewFeedSummary');
   var winType = document.documentElement.getAttribute('windowtype');