mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
fix for bug #36155 -default identity for compose message must be the selected identity in messenger windows; r=ducarroz
This commit is contained in:
parent
e1b3fb24d2
commit
fcc484937b
@ -17,6 +17,13 @@
|
||||
|
||||
function goOpenNewMessage()
|
||||
{
|
||||
try {
|
||||
MsgNewMessage();
|
||||
return;
|
||||
}
|
||||
catch(ex) {
|
||||
;
|
||||
}
|
||||
var msgComposeService = Components.classes["component://netscape/messengercompose"].getService();
|
||||
msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
|
||||
msgComposeService.OpenComposeWindow(null, null,
|
||||
@ -38,4 +45,4 @@
|
||||
<key id="key_newMessage" xulkey="true" key="&newMessageCmd.key;" observes="cmd_newMessage"/>
|
||||
</keyset>
|
||||
|
||||
</overlay>
|
||||
</overlay>
|
||||
|
@ -111,7 +111,7 @@ function MsgNewMessage(event)
|
||||
var loadedFolder = GetFirstSelectedMsgFolder();
|
||||
var messageArray = GetSelectedMessages();
|
||||
|
||||
if (event.shiftKey)
|
||||
if (event && event.shiftKey)
|
||||
ComposeMessage(msgComposeType.New, msgComposeFormat.OppositeOfDefault, loadedFolder, messageArray);
|
||||
else
|
||||
ComposeMessage(msgComposeType.New, msgComposeFormat.Default, loadedFolder, messageArray);
|
||||
|
Loading…
Reference in New Issue
Block a user