summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-10-20 15:27:40 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-10-20 15:27:40 -0700
commitecdd689e23cbe4b509fb885107b96b455739a497 (patch)
tree48a7f1f07e1c420ee392b61323e6e02999c1610f
parent04d6bd302ba5809dc6aa1c33d91dc0737af6e033 (diff)
EXP-1435 Nearby chat log does not change to "Plain style"/"Widget style" without restarting viewer
-rw-r--r--indra/newview/llnearbychat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llnearbychat.cpp b/indra/newview/llnearbychat.cpp
index 67d745248f..3418462192 100644
--- a/indra/newview/llnearbychat.cpp
+++ b/indra/newview/llnearbychat.cpp
@@ -214,9 +214,10 @@ void LLNearbyChat::updateChatHistoryStyle()
//static
void LLNearbyChat::processChatHistoryStyleUpdate(const LLSD& newvalue)
{
- //LLNearbyChat* nearby_chat = LLFloaterReg::getTypedInstance<LLNearbyChat>("nearby_chat", LLSD());
- //if(nearby_chat)
- // nearby_chat->updateChatHistoryStyle();
+ LLFloater* chat_bar = LLFloaterReg::getInstance("chat_bar");
+ LLNearbyChat* nearby_chat = chat_bar->findChild<LLNearbyChat>("nearby_chat");
+ if(nearby_chat)
+ nearby_chat->updateChatHistoryStyle();
}
bool isWordsName(const std::string& name)