From 83a66979968ce43edcdcd90f5af8bd509c155d88 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 19 Jan 2015 11:54:43 +0100 Subject: [PATCH] Fix warning about missing UI control "image_quality_level" --- indra/newview/llpanelsnapshot.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/indra/newview/llpanelsnapshot.cpp b/indra/newview/llpanelsnapshot.cpp index 56569e3207..0cbc36784d 100755 --- a/indra/newview/llpanelsnapshot.cpp +++ b/indra/newview/llpanelsnapshot.cpp @@ -142,7 +142,14 @@ void LLPanelSnapshot::updateImageQualityLevel() quality_lvl = LLTrans::getString("snapshot_quality_very_high"); } - getChild("image_quality_level")->setTextArg("[QLVL]", quality_lvl); + // Only update if it really exists + //getChild("image_quality_level")->setTextArg("[QLVL]", quality_lvl); + LLTextBox* image_quality_level_textbox = findChild("image_quality_level"); + if (image_quality_level_textbox) + { + image_quality_level_textbox->setTextArg("[QLVL]", quality_lvl); + } + // } void LLPanelSnapshot::goBack()