From f695f6c25c13652fa2253c36c92bd28ae6415fd8 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sun, 13 Sep 2009 05:48:24 -0700 Subject: Fixed windlight toolbar not updating windlight floater pulldown --- linden/indra/newview/llfloaterwindlight.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linden/indra/newview/llfloaterwindlight.cpp') diff --git a/linden/indra/newview/llfloaterwindlight.cpp b/linden/indra/newview/llfloaterwindlight.cpp index 43e8e1e..1c3db9b 100644 --- a/linden/indra/newview/llfloaterwindlight.cpp +++ b/linden/indra/newview/llfloaterwindlight.cpp @@ -439,6 +439,14 @@ void LLFloaterWindLight::syncMenu() childSetValue("WLGamma", param_mgr->mWLGamma.x); childSetValue("WLStarAlpha", param_mgr->mCurParams.getStarBrightness()); + + // Update combobox name + LLComboBox* comboBox = getChild("WLPresetsCombo"); + std::string current_name = param_mgr->mCurPresetName; + if (!current_name.empty() && current_name != comboBox->getSelectedValue().asString()) + { + comboBox->selectByValue(LLSD(current_name)); + } } -- cgit v1.1