Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE a=Ratty for comm-aurora comm-beta comm-release comm-esr45 THUNDERBIRD452b1_2016051723_RELBRANCH
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 29 Mar 2016 02:18:35 +0800
branchTHUNDERBIRD452b1_2016051723_RELBRANCH
changeset 27080 29699fbacceaf1d2acc002bd1b7bfd5bc159d578
parent 27079 d03aca46f89ca7513b3f468d4cc10f1578bd39a6
child 27081 fd67388990fa29d16bb4273190449de0f9637a4b
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)
reviewersRatty, Ratty, Ratty
bugs1260035
Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE a=Ratty for comm-aurora comm-beta comm-release comm-esr45
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');