From a572f31ffb79ddfd61bcbb4b6fcb79bfa796d191 Mon Sep 17 00:00:00 2001 From: Seth ProductEngine Date: Fri, 18 May 2012 20:50:50 +0300 Subject: CHUI-121 FIXED showing chat participants list only in torn off IM floaters. --- indra/newview/llimfloater.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 981250d223..97f59f9a15 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -1279,9 +1279,17 @@ void LLIMFloater::updateHeaderAndToolbar() } } + bool is_control_panel_visible = false; + if (mControlPanel) + { + // Control panel should be visible only in torn off floaters. + is_control_panel_visible = !is_hosted && gSavedSettings.getBOOL("IMShowControlPanel"); + mControlPanel->getParent()->setVisible(is_control_panel_visible); + } + // Display collapse image (<<) if the floater is hosted // or if it is torn off but has an open control panel. - bool is_expanded = is_hosted || (mControlPanel && mControlPanel->getParent()->getVisible()); + bool is_expanded = is_hosted || is_control_panel_visible; mExpandCollapseBtn->setImageOverlay(getString(is_expanded ? "collapse_icon" : "expand_icon")); LLIMModel::LLIMSession* session = LLIMModel::instance().findIMSession(mSessionID); -- cgit v1.2.3