Bug 411013 - Userlist not updated if it was hidden when the tab changed

r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@242514 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com 2008-01-06 22:11:39 +00:00
parent 2833078749
commit bca1b607c4

View File

@ -2534,17 +2534,12 @@ function setCurrentObject (obj)
client.currentObject = obj;
/* If the splitter's collapsed, the userlist *isn't* visible, but we'll not
* get told when it becomes visible, so update it even if it's only the
* splitter visible. */
if (isVisible("user-list-box") || isVisible("main-splitter"))
// Update userlist:
userList.view = null;
if (obj.TYPE == "IRCChannel")
{
userList.view = null;
if (obj.TYPE == "IRCChannel")
{
userList.view = obj.userList;
updateUserList();
}
userList.view = obj.userList;
updateUserList();
}
tb = dispatch("create-tab-for-view", { view: obj });