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
This commit is contained in:
parent
4602af52f2
commit
dc6ea0bb08
@ -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