diff --git a/indra/newview/llchatbar.cpp b/indra/newview/llchatbar.cpp index 8b8cd47f40..6bee0629f1 100644 --- a/indra/newview/llchatbar.cpp +++ b/indra/newview/llchatbar.cpp @@ -484,7 +484,7 @@ void LLChatBar::sendChat( EChatType type ) // If the user wants to stop chatting on hitting return, lose focus // and go out of chat mode. - if (gChatBar == this && gSavedSettings.getBOOL("CloseChatOnReturn")) + if (gChatBar == this && (gSavedSettings.getBOOL("CloseChatOnReturn") || gSavedSettings.getBOOL("AutohideChatBar"))) { stopChat(); } diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp index 86879d580d..812959b111 100644 --- a/indra/newview/llnearbychatbar.cpp +++ b/indra/newview/llnearbychatbar.cpp @@ -784,7 +784,7 @@ void LLNearbyChatBar::sendChat( EChatType type ) // If the user wants to stop chatting on hitting return, lose focus // and go out of chat mode. - if (gSavedSettings.getBOOL("CloseChatOnReturn")) + if (gSavedSettings.getBOOL("CloseChatOnReturn") || gSavedSettings.getBOOL("AutohideChatBar")) { stopChat(); }