From 02235f056d50b77608f22ea1c0fb9ee29c777cdd Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Tue, 18 May 2004 10:16:42 +0000 Subject: [PATCH] Followup patch to bug 33045 to fix the case where RerootThreadPane wasn't getting called when it should p=ch.ey@gmx.net r=me sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@156523 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/base/content/commandglue.js | 8 +------- mozilla/mailnews/base/resources/content/commandglue.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/mozilla/mail/base/content/commandglue.js b/mozilla/mail/base/content/commandglue.js index 1b4f9b0884f..043f1ae5b64 100644 --- a/mozilla/mail/base/content/commandglue.js +++ b/mozilla/mail/base/content/commandglue.js @@ -389,13 +389,7 @@ function SwitchView(command) break; } - // that should have initialized gDBView, now re-root the thread pane - var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView); - if (treeView) - { - var tree = GetThreadTree(); - tree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject).view = treeView; - } + RerootThreadPane(); } function SetSentFolderColumns(isSentFolder) diff --git a/mozilla/mailnews/base/resources/content/commandglue.js b/mozilla/mailnews/base/resources/content/commandglue.js index b1531d0eac8..a7d80503783 100644 --- a/mozilla/mailnews/base/resources/content/commandglue.js +++ b/mozilla/mailnews/base/resources/content/commandglue.js @@ -395,13 +395,7 @@ function SwitchView(command) break; } - // that should have initialized gDBView, now re-root the thread pane - var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView); - if (treeView) - { - var tree = GetThreadTree(); - tree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject).view = treeView; - } + RerootThreadPane(); } function SetSentFolderColumns(isSentFolder)