summaryrefslogtreecommitdiff
path: root/indra/newview/llimfloater.cpp
diff options
context:
space:
mode:
authorAlexanderP ProductEngine <apaschenko@productengine.com>2012-05-15 22:19:20 +0300
committerAlexanderP ProductEngine <apaschenko@productengine.com>2012-05-15 22:19:20 +0300
commite2824864590ded669eac3c53efbfc60d04107ee4 (patch)
tree293f38b699f2e1f6a9de781304aba7b40ed879dd /indra/newview/llimfloater.cpp
parent0ed7966bd5471e4152ade9ac63e81406b4d0a679 (diff)
CHUI-105 WIP Hide an additional close button for undocked state of an IM floater
Diffstat (limited to 'indra/newview/llimfloater.cpp')
-rw-r--r--indra/newview/llimfloater.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp
index cb489627fb..1ca3545aae 100644
--- a/indra/newview/llimfloater.cpp
+++ b/indra/newview/llimfloater.cpp
@@ -391,6 +391,12 @@ BOOL LLIMFloater::postBuild()
}
}
+void LLIMFloater::onTearOffClicked(LLIMFloater* self)
+{
+ onClickTearOff(self);
+ updateTitleButtons();
+}
+
void LLIMFloater::boundVoiceChannel()
{
LLVoiceChannel* voice_channel = LLIMModel::getInstance()->getVoiceChannel(mSessionID);
@@ -1377,6 +1383,7 @@ void LLIMFloater::updateTitleButtons()
}
bool is_hosted = getHost() != NULL;
+
if (is_hosted) ///< floater is hosted
{
for (S32 i = 0; i < BUTTON_COUNT; i++)
@@ -1391,6 +1398,7 @@ void LLIMFloater::updateTitleButtons()
}
mExpandCollapseBtn->setImageOverlay(getString("collapse_icon"));
+
}
else ///< floater is torn off
{
@@ -1403,6 +1411,8 @@ void LLIMFloater::updateTitleButtons()
}
}
+ getChild<LLButton>("close_btn")->setVisible(is_hosted);
+
LLIMModel::LLIMSession* session = LLIMModel::instance().findIMSession(mSessionID);
if (session)
{