summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authormaxim@mnikolenko <maxim@mnikolenko>2013-01-16 17:37:13 +0200
committermaxim@mnikolenko <maxim@mnikolenko>2013-01-16 17:37:13 +0200
commitb0774ec9147ddc2c2e5e93e5a74c929c802c32af (patch)
tree268993efcfa3152f5cc50dc9d384ff382ac8cd8b /indra/llui
parentfd0cae39f38673d69448e90971e2369e0b81c2fe (diff)
CHUI-650 (Floaters not returning to active transparency after becoming inactive)
- Checking is added(comparing to previous fix) to avoid crash.
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloater.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index 8f9be5285d..d2aae11191 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -655,7 +655,7 @@ void LLFloater::openFloater(const LLSD& key)
{
llinfos << "Opening floater " << getName() << llendl;
mKey = key; // in case we need to open ourselves again
-
+
if (getSoundFlags() != SILENT
// don't play open sound for hosted (tabbed) windows
&& !getHost()
@@ -2394,6 +2394,11 @@ void LLFloaterView::bringToFront(LLFloater* child, BOOL give_focus)
{
if (mFrontChild == child)
{
+
+ if (give_focus && !gFocusMgr.childHasKeyboardFocus(child))
+ {
+ child->setFocus(TRUE);
+ }
return;
}