summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llnearbychatbar.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp
index 4674c85324..6e22c7fea0 100644
--- a/indra/newview/llnearbychatbar.cpp
+++ b/indra/newview/llnearbychatbar.cpp
@@ -403,8 +403,16 @@ void LLNearbyChatBar::setMinimized(BOOL b)
{
if (b != LLFloater::isMinimized())
{
+ LLView* nearby_chat = getChildView("nearby_chat");
+
+ static bool is_visible = nearby_chat->getVisible();
+ if (b)
+ {
+ is_visible = nearby_chat->getVisible();
+ }
+
+ nearby_chat->setVisible(b ? false : is_visible);
LLFloater::setMinimized(b);
- getChildView("nearby_chat")->setVisible(!b);
}
}