don't autosave when send or save already in progress, sr=mscott 307028

This commit is contained in:
bienvenu%nventure.com 2005-09-14 15:59:51 +00:00
parent 7dd94fccba
commit 583d264b30

View File

@ -3513,7 +3513,8 @@ function loadHTMLMsgPrefs()
function AutoSave()
{
if (gMsgCompose.editor && (gContentChanged || gMsgCompose.bodyModified))
if (gMsgCompose.editor && (gContentChanged || gMsgCompose.bodyModified)
&& !gSendOrSaveOperationInProgress)
GenericSendMessage(nsIMsgCompDeliverMode.AutoSaveAsDraft);
gAutoSaveTimeout = setTimeout(AutoSave, gAutoSaveInterval);