summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2009-12-15 19:10:27 +0200
committerAlexei Arabadji <aarabadji@productengine.com>2009-12-15 19:10:27 +0200
commit7ba2f99ae01f0bc08c869e8a250c888a5c17c49a (patch)
tree84b5a5025b2f823875223f487da04be8396c71bb /indra
parente303864c1792a69d25f42b9bc44bc59827cfdbd1 (diff)
mplemented EXT-3395 “Docked IM/Chat windows shouldn't hide when voice control panel is opened”;
--HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lldockablefloater.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llui/lldockablefloater.cpp b/indra/llui/lldockablefloater.cpp
index 63faf44f9d..9dc7861992 100644
--- a/indra/llui/lldockablefloater.cpp
+++ b/indra/llui/lldockablefloater.cpp
@@ -38,6 +38,8 @@
//static
LLHandle<LLFloater> LLDockableFloater::sInstanceHandle;
+static const std::string VOICE_FLOATER("floater_voice_controls"), IM_FLOATER("panel_im");
+
//static
void LLDockableFloater::init(LLDockableFloater* thiz)
{
@@ -114,9 +116,11 @@ void LLDockableFloater::resetInstance()
{
if (mUniqueDocking && sInstanceHandle.get() != this)
{
- if (sInstanceHandle.get() != NULL && sInstanceHandle.get()->isDocked())
+ if (sInstanceHandle.get() != NULL && sInstanceHandle.get()->isDocked()
+ && (getName() != VOICE_FLOATER || sInstanceHandle.get()->getName() != IM_FLOATER)
+ && (getName() != IM_FLOATER || sInstanceHandle.get()->getName() != VOICE_FLOATER))
{
- sInstanceHandle.get()->setVisible(FALSE);
+ sInstanceHandle.get()->setVisible(FALSE);
}
sInstanceHandle = getHandle();
}