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

git-svn-id: svn://10.0.0.236/trunk@180202 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com
2005-09-14 15:59:51 +00:00
parent b2bd45a790
commit 3e8355892a

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);