From b7b612500132acf05e82f1482460ffa9312fcc4a Mon Sep 17 00:00:00 2001 From: AlexanderP ProductEngine Date: Fri, 1 Jun 2012 14:57:51 +0300 Subject: CHUI-119 FIXED Bug fixed. Clean up a code --- indra/newview/llnearbychat.cpp | 7 +- indra/newview/llstartup.cpp | 9 --- .../skins/default/xui/en/floater_im_session.xml | 88 +++++++++++++--------- 3 files changed, 58 insertions(+), 46 deletions(-) diff --git a/indra/newview/llnearbychat.cpp b/indra/newview/llnearbychat.cpp index 2d7095957e..4ac72858d3 100644 --- a/indra/newview/llnearbychat.cpp +++ b/indra/newview/llnearbychat.cpp @@ -68,7 +68,6 @@ S32 LLNearbyChat::sLastSpecialChatChannel = 0; - // --- 2 functions in the global namespace :( --- bool isWordsName(const std::string& name) { @@ -179,8 +178,12 @@ BOOL LLNearbyChat::postBuild() gSavedSettings.declareS32("nearbychat_showicons_and_names", 2, "NearByChat header settings", true); mChatHistory = getChild("chat_history"); + if (gSavedPerAccountSettings.getBOOL("LogShowHistory")) + { + loadHistory(); + } - return LLIMConversation::postBuild();; + return LLIMConversation::postBuild(); } void LLNearbyChat::onNearbySpeakers() diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 0ac8c1fe39..2f13ba5ab1 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1376,15 +1376,6 @@ bool idle_startup() LLVoiceClient::getInstance()->updateSettings(); display_startup(); - //gCacheName is required for nearby chat history loading - //so I just moved nearby history loading a few states further - if (gSavedPerAccountSettings.getBOOL("LogShowHistory")) - { - LLNearbyChat* nearby_chat = LLNearbyChat::getInstance(); - if (nearby_chat) nearby_chat->loadHistory(); - } - display_startup(); - // *Note: this is where gWorldMap used to be initialized. // register null callbacks for audio until the audio system is initialized diff --git a/indra/newview/skins/default/xui/en/floater_im_session.xml b/indra/newview/skins/default/xui/en/floater_im_session.xml index c5cacab9f4..beeb4eea9b 100644 --- a/indra/newview/skins/default/xui/en/floater_im_session.xml +++ b/indra/newview/skins/default/xui/en/floater_im_session.xml @@ -70,8 +70,6 @@ left_pad="4" name="add_btn" width="31"> -