summaryrefslogtreecommitdiff
path: root/indra/newview/llmenucommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmenucommands.cpp')
-rw-r--r--indra/newview/llmenucommands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llmenucommands.cpp b/indra/newview/llmenucommands.cpp
index 502302868e..d76ddbf4d4 100644
--- a/indra/newview/llmenucommands.cpp
+++ b/indra/newview/llmenucommands.cpp
@@ -67,7 +67,7 @@
#include "llworld.h"
#include "llworldmap.h"
#include "llfocusmgr.h"
-
+#include "llbottomtray.h"
void handle_pay_by_id(const LLUUID& agent_id)
{
const BOOL is_group = FALSE;
@@ -83,7 +83,8 @@ void handle_mouselook(void*)
void handle_chat(void*)
{
// give focus to chatbar if it's open but not focused
- if (gSavedSettings.getBOOL("ChatVisible") && gFocusMgr.childHasKeyboardFocus(gChatBar))
+ if (gSavedSettings.getBOOL("ChatVisible") && gFocusMgr.childHasKeyboardFocus(
+ LLBottomTray::getInstance()->getChatBox()))
{
LLChatBar::stopChat();
}