summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-07-18 01:56:42 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-07-18 01:56:42 +0300
commitbc3f2d53d10c64ccded6aaa14ea37eac78ef6856 (patch)
treecf78de68ab8ad66719659cf858fb073b4d2c4a13 /indra/newview
parent37f41392cdb90f2b918828f0bc2b22f6705b6db4 (diff)
SL-19891 Make sure focusable elements clear focus on destruction
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermediafocus.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llviewermediafocus.cpp b/indra/newview/llviewermediafocus.cpp
index ba80eeb6b6..e914e2121c 100644
--- a/indra/newview/llviewermediafocus.cpp
+++ b/indra/newview/llviewermediafocus.cpp
@@ -63,6 +63,7 @@ LLViewerMediaFocus::~LLViewerMediaFocus()
{
// The destructor for LLSingletons happens at atexit() time, which is too late to do much.
// Clean up in cleanupClass() instead.
+ gFocusMgr.removeKeyboardFocusWithoutCallback(this);
}
void LLViewerMediaFocus::setFocusFace(LLPointer<LLViewerObject> objectp, S32 face, viewer_media_t media_impl, LLVector3 pick_normal)