diff options
author | Monroe Linden <monroe@lindenlab.com> | 2009-10-29 18:49:36 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2009-10-29 18:49:36 -0700 |
commit | 0da67c881929a53f7d38ead5540e0f098b65a0ae (patch) | |
tree | b85ed6c48de891a2a7f92f166c102d37c6351d3a /indra/newview | |
parent | 8604c978ca3d7fdcff4849cc53f44352b237406c (diff) |
In LLViewerMediaFocus::setFocusFace(), when clearing focus, only clear keyboard focus if the object had it in the first place.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermediafocus.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewermediafocus.cpp b/indra/newview/llviewermediafocus.cpp index 0b48461d54..0ef4679057 100644 --- a/indra/newview/llviewermediafocus.cpp +++ b/indra/newview/llviewermediafocus.cpp @@ -123,7 +123,10 @@ void LLViewerMediaFocus::setFocusFace(LLPointer<LLViewerObject> objectp, S32 fac { mMediaControls.get()->resetZoomLevel(); } + } + if(hasFocus()) + { gFocusMgr.setKeyboardFocus(NULL); } |