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

This commit is contained in:
bienvenu%nventure.com 2004-10-14 15:35:19 +00:00
parent 1e6869f69a
commit a699702fe6

View File

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