EXP-1452 FIXED (minimum height of NEARBY CHAT window can be circumvented by minimizing it.)

Reason: visibility state of chat was always set to true when floater unminimized

Solution: save visibility state of the chat to restore it after floater unminimized
meow-7.2.2
Paul ProductEngine 2011-11-01 19:23:32 +02:00
parent d86def6f03
commit 3ae3d04e7e
1 changed files with 9 additions and 1 deletions

View File

@ -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);
}
}