From dc6ea0bb08cf4184c176037051cbdcb4ec65fc7b Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Thu, 14 Oct 2004 15:35:19 +0000 Subject: [PATCH] fix 243532 selection jumping if you delete imap messages, then select another message before delete finishes, patch by lorenzo@colitti.com, r=mscott, sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@163738 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/base/content/mailWindowOverlay.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/mail/base/content/mailWindowOverlay.js b/mozilla/mail/base/content/mailWindowOverlay.js index cbc98f72e0d..ce40f388dbc 100644 --- a/mozilla/mail/base/content/mailWindowOverlay.js +++ b/mozilla/mail/base/content/mailWindowOverlay.js @@ -2208,6 +2208,12 @@ function OnMsgLoaded(aUrl) if (!folder || !msgURI) return; + // If we are in the middle of a delete or move operation, make sure that + // if the user clicks on another message then that message stays selected + // and the selection does not "snap back" to the message chosen by + // SetNextMessageAfterDelete() when the operation completes (bug 243532). + gNextMessageViewIndexAfterDelete = -2; + if (!(/type=x-message-display/.test(msgURI))) msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI);