From 81ef1292edbb0bdd1e3e6fb9eb59c5d9287fd7d1 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Tue, 16 Dec 2014 21:35:28 -0500 Subject: [PATCH] Fix broked World->Chat --- indra/newview/llmenucommands.cpp | 7 ------- indra/newview/skins/default/xui/en-us/menu_viewer.xml | 7 ++++--- indra/newview/skins/default/xui/en-us/panel_toolbar.xml | 4 +--- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/indra/newview/llmenucommands.cpp b/indra/newview/llmenucommands.cpp index 393efcc1e..fdd533257 100644 --- a/indra/newview/llmenucommands.cpp +++ b/indra/newview/llmenucommands.cpp @@ -116,12 +116,6 @@ // [/RLVa:LF] #include "shfloatermediaticker.h" -void handle_chat() -{ - // give focus to chatbar if it's open but not focused - static const LLCachedControl chat_visible("ChatVisible",true); - (chat_visible && gFocusMgr.childHasKeyboardFocus(gChatBar)) ? LLChatBar::stopChat() : LLChatBar::startChat(NULL); -} void handle_debug_avatar_textures(void*); template void handle_singleton_toggle(void*); void show_outfit_dialog() { new LLMakeOutfitDialog(false); } @@ -177,7 +171,6 @@ struct MenuFloaterDict : public LLSingleton registerFloater("build", boost::bind(toggle_build)); registerFloater("buy currency", boost::bind(LLFloaterBuyCurrency::buyCurrency)); registerFloater("buy land", boost::bind(&LLViewerParcelMgr::startBuyLand, boost::bind(LLViewerParcelMgr::getInstance), false)); - registerFloater("chatbar", boost::bind(handle_chat)); registerFloater("complaint reporter", boost::bind(LLFloaterReporter::showFromMenu, COMPLAINT_REPORT)); registerFloater("DayCycle", boost::bind(LLFloaterDayCycle::show), boost::bind(LLFloaterDayCycle::isOpen)); registerFloater("debug avatar", boost::bind(handle_debug_avatar_textures, (void*)NULL)); diff --git a/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/indra/newview/skins/default/xui/en-us/menu_viewer.xml index d2d6765bd..9dee8d13f 100644 --- a/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en-us/menu_viewer.xml @@ -491,10 +491,11 @@ - - - + + + diff --git a/indra/newview/skins/default/xui/en-us/panel_toolbar.xml b/indra/newview/skins/default/xui/en-us/panel_toolbar.xml index 1a04e5d73..d77945f32 100644 --- a/indra/newview/skins/default/xui/en-us/panel_toolbar.xml +++ b/indra/newview/skins/default/xui/en-us/panel_toolbar.xml @@ -9,9 +9,7 @@ - +