summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2012-05-18 20:50:50 +0300
committerSeth ProductEngine <slitovchuk@productengine.com>2012-05-18 20:50:50 +0300
commita572f31ffb79ddfd61bcbb4b6fcb79bfa796d191 (patch)
tree9486f59fe743c11f0a5a0dd08388d3b359476e4d /indra
parentacbce3248987d7e71be0fa0a251879c4066d9042 (diff)
CHUI-121 FIXED showing chat participants list only in torn off IM floaters.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llimfloater.cpp10
1 files changed, 9 insertions, 1 deletions
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);