Bug 575138 - New Message To: icons don't work
authorJeff Beckley <beckley@qualcomm.com>
Thu, 08 Jul 2010 18:45:43 -0700
changeset 282 d239457b0bdf5fa7f0854d4d9284a56352e53089
parent 281 994ce4f21a7dcb55edef0ecb39abbd2ae4770a83
child 283 5946d4e1b4c810a1e7c22950619a9acfc21cc9a2
push id267
push userbeckley@qualcomm.com
push dateFri, 09 Jul 2010 01:45:55 +0000
bugs575138
Bug 575138 - New Message To: icons don't work
base/content/toolbarbuttons.js
--- a/base/content/toolbarbuttons.js
+++ b/base/content/toolbarbuttons.js
@@ -107,18 +107,17 @@ function createRecipientButton(email, na
         return null;
     }
 
     return paletteItem;
 }
 
 function MessageTo(email, compType)
 {
-    var folder = GetLoadedMsgFolder();
-    var messageArray = GetSelectedMessages();
+    var messageArray = gFolderDisplay.selectedMessageUris;
     
     var msgComposeType = Components.interfaces.nsIMsgCompType;
     var msgComposeFormat = Components.interfaces.nsIMsgCompFormat;
     var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService()
                                       .QueryInterface(Components.interfaces.nsIMsgComposeService);
     
     var numMessages = 1;
     if (compType != msgComposeType.New)