Fix newly added blocked avatar is not selected in blocklist when using the blocklist intergrated in the people panel

Thu, 11 Dec 2014 14:18:04 +0100

author
Ansariel
date
Thu, 11 Dec 2014 14:18:04 +0100
changeset 43053
dd80385c8079
parent 43052
88af26453015
child 43054
6524550a1a3e

Fix newly added blocked avatar is not selected in blocklist when using the blocklist intergrated in the people panel

indra/newview/llpanelpeople.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llpanelpeople.cpp	Thu Dec 11 13:33:06 2014 +0100
     1.2 +++ b/indra/newview/llpanelpeople.cpp	Thu Dec 11 14:18:04 2014 +0100
     1.3 @@ -1580,6 +1580,17 @@
     1.4  	std::string tab_name = key["people_panel_tab_name"];
     1.5  	if (!tab_name.empty())
     1.6  		mTabContainer->selectTabByName(tab_name);
     1.7 +
     1.8 +	// <FS:Ansariel> Call onOpen for the blocklist panel to select mute if necessary
     1.9 +	if (tab_name == "blocked_panel")
    1.10 +	{
    1.11 +		LLPanel* blocklist_impl_panel = mTabContainer->getCurrentPanel()->findChild<LLPanel>("panel_block_list_sidetray");
    1.12 +		if (blocklist_impl_panel)
    1.13 +		{
    1.14 +			blocklist_impl_panel->onOpen(key);
    1.15 +		}
    1.16 +	}
    1.17 +	// </FS:Ansariel>
    1.18  }
    1.19  
    1.20  bool LLPanelPeople::notifyChildren(const LLSD& info)

mercurial