summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/CMakeLists.txt1
-rw-r--r--indra/newview/lloutputmonitorctrl.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 69927e5e0e..b452ad7421 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1760,6 +1760,7 @@ if (INSTALL)
endif (INSTALL)
if (LL_TESTS)
+else (LL_TESTS)
# To add a viewer unit test, just add the test .cpp file below
# This creates a separate test project per file listed.
include(LLAddBuildTest)
diff --git a/indra/newview/lloutputmonitorctrl.cpp b/indra/newview/lloutputmonitorctrl.cpp
index 89b0105ae9..80477c1041 100644
--- a/indra/newview/lloutputmonitorctrl.cpp
+++ b/indra/newview/lloutputmonitorctrl.cpp
@@ -282,7 +282,7 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
if (switch_on)
{
setVisible((BOOL)switch_on);
- if (isInVisibleChain())
+ if (getParent() && getParent()->isInVisibleChain())
{
notifyParentVisibilityChanged();
}
@@ -295,7 +295,7 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
}
else
{
- if (isInVisibleChain())
+ if (getParent() && getParent()->isInVisibleChain())
{
LL_DEBUGS("SpeakingIndicator") << "Indicator is in visible chain, notifying parent: " << mSpeakerId << LL_ENDL;
setVisible((BOOL)switch_on);