diff options
author | Jacek Antonelli | 2010-07-27 04:08:19 -0500 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 00:30:59 -0500 |
commit | e4475e45edde706332718908b1ebbef924c44b4f (patch) | |
tree | 496e051b768f1b1344b96418bba773f577c3b298 /linden/indra/newview/llwindlightremotectrl.cpp | |
parent | Fixed a Linden typo that made the object cache useless. (SNOW-783) (diff) | |
download | meta-impy-e4475e45edde706332718908b1ebbef924c44b4f.zip meta-impy-e4475e45edde706332718908b1ebbef924c44b4f.tar.gz meta-impy-e4475e45edde706332718908b1ebbef924c44b4f.tar.bz2 meta-impy-e4475e45edde706332718908b1ebbef924c44b4f.tar.xz |
Refactored a bunch of messy LightShare code.
Diffstat (limited to 'linden/indra/newview/llwindlightremotectrl.cpp')
-rw-r--r-- | linden/indra/newview/llwindlightremotectrl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() | |||
173 | mPresetsCombo->addSimpleElement(getString("midnight"), ADD_BOTTOM); | 173 | mPresetsCombo->addSimpleElement(getString("midnight"), ADD_BOTTOM); |
174 | mPresetsCombo->addSimpleElement(getString("revert_region"), ADD_BOTTOM); | 174 | mPresetsCombo->addSimpleElement(getString("revert_region"), ADD_BOTTOM); |
175 | 175 | ||
176 | if (mPresetsCombo->getSelectedItemLabel() != currentParams.mName && | 176 | if (!currentParams.mName.empty()) |
177 | !currentParams.mName.empty()) | ||
178 | { | 177 | { |
179 | mPresetsCombo->selectByValue(LLSD(currentParams.mName)); | 178 | mPresetsCombo->selectByValue(LLSD(currentParams.mName)); |
180 | } | 179 | } |