Bug 455502: Standalone message window, various "WhichPaneHasFocus is not defined" errors. r=standard8
authorMagnus Melin <mkmelin@iki.fi>
Wed, 17 Sep 2008 07:59:22 +0300
changeset 351 ad0d92b8cfa845af9e40caf40d8feeabe5862303
parent 350 bc29303430f462870e6f28087e8a75290e6e85ce
child 352 96c4692bd6b17eff55926f5a641f30f78bff1b84
push idunknown
push userunknown
push dateunknown
reviewersstandard8
bugs455502, 231654
Bug 455502: Standalone message window, various "WhichPaneHasFocus is not defined" errors. r=standard8 (Or the part that's left of the patch, the fix for bug 231654 had part of the patch included)
mail/base/content/messageWindow.js
--- a/mail/base/content/messageWindow.js
+++ b/mail/base/content/messageWindow.js
@@ -747,16 +747,21 @@ function MsgDeleteMessageFromMessageWind
 
   // before we delete
   SetNextMessageAfterDelete();
 
   if (reallyDelete)
       gDBView.doCommand(nsMsgViewCommandType.deleteNoTrash);
   else
       gDBView.doCommand(nsMsgViewCommandType.deleteMsg);
+
+  // Need to update the toolbar for *this* message, since with the
+  // imap mark-as-deleted model delete in the standalone msg window
+  // doesn't (currently) advance to next.
+  UpdateDeleteToolbarButton();
 }
 
 // MessageWindowController object (handles commands when one of the trees does not have focus)
 var MessageWindowController =
 {
    supportsCommand: function(command)
   {
     switch ( command )