From 9d294603852f8613f0dcfa90cf724239cbf57947 Mon Sep 17 00:00:00 2001 From: "gijskruitbosch%gmail.com" Date: Mon, 26 Feb 2007 18:35:31 +0000 Subject: [PATCH] Bug 371067 - Cannot switch channels on recent trunk builds r=silver@warwickcompsoc.co.uk (James Ross) ChatZilla Only. --- extensions/irc/xul/content/static.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/extensions/irc/xul/content/static.js b/extensions/irc/xul/content/static.js index ffdbfc34ca01..aabcd409dc0d 100644 --- a/extensions/irc/xul/content/static.js +++ b/extensions/irc/xul/content/static.js @@ -2818,10 +2818,7 @@ function setCurrentObject (obj) tb = getTabForObject(co); } if (tb) - { - tb.selected = false; - tb.setAttribute ("state", "normal"); - } + tb.setAttribute("state", "normal"); /* Unselect currently selected users. * If the splitter's collapsed, the userlist *isn't* visible, but we'll not @@ -2856,8 +2853,8 @@ function setCurrentObject (obj) tb = dispatch("create-tab-for-view", { view: obj }); if (tb) { - tb.selected = true; - tb.setAttribute ("state", "current"); + tb.parentNode.selectedItem = tb; + tb.setAttribute("state", "current"); } var vk = Number(tb.getAttribute("viewKey"));