From 3e8355892a81076fa2a8c6d6ebfd68f24d4507e4 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Wed, 14 Sep 2005 15:59:51 +0000 Subject: [PATCH] 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 --- mozilla/mail/components/compose/content/MsgComposeCommands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index 02de3966b13..6771d8dba2e 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -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);