From e4475e45edde706332718908b1ebbef924c44b4f Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Tue, 27 Jul 2010 04:08:19 -0500 Subject: Refactored a bunch of messy LightShare code. --- linden/indra/newview/llwindlightremotectrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linden/indra/newview/llwindlightremotectrl.cpp') diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp index 0beb3e5..b5c15a5 100644 --- a/linden/indra/newview/llwindlightremotectrl.cpp +++ b/linden/indra/newview/llwindlightremotectrl.cpp @@ -173,8 +173,7 @@ void LLWindlightRemoteCtrl::refreshPresets() mPresetsCombo->addSimpleElement(getString("midnight"), ADD_BOTTOM); mPresetsCombo->addSimpleElement(getString("revert_region"), ADD_BOTTOM); - if (mPresetsCombo->getSelectedItemLabel() != currentParams.mName && - !currentParams.mName.empty()) + if (!currentParams.mName.empty()) { mPresetsCombo->selectByValue(LLSD(currentParams.mName)); } -- cgit v1.1