Bug 306076. Some menu items grayed out in mail message compose when they shouldn't be. r=bienvenu, sr=neil

git-svn-id: svn://10.0.0.236/trunk@179562 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net 2005-09-02 19:14:50 +00:00
parent 9e061fa2e0
commit b2722647f1
2 changed files with 8 additions and 0 deletions

View File

@ -1446,6 +1446,10 @@ var gMsgEditorCreationObserver =
editorStyle.addStyleSheet("chrome://messenger/skin/messageQuotes.css");
InitEditor();
}
// Now that we know this document is an editor, ensure
// that CommandUpdate_MsgCompose() will update commands
// next time the editable document receives focus
gLastWindowToHaveFocus = null;
}
}
}

View File

@ -1425,6 +1425,10 @@ var gMsgEditorCreationObserver =
var editor = GetCurrentEditor();
if (editor && GetCurrentCommandManager() == aSubject)
InitEditor(editor);
// Now that we know this document is an editor, ensure
// that CommandUpdate_MsgCompose() will update commands
// next time the editable document receives focus
gLastWindowToHaveFocus = null;
}
}
}