mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
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:
parent
1e6869f69a
commit
a699702fe6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user