diff options
author | McCabe Maxsted | 2010-05-18 14:56:38 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:40:54 -0500 |
commit | bd35913526ff34dcfaa1a8bfab88138db0abb413 (patch) | |
tree | 53757ab511953317807d7570dba3a8349cf76658 /linden/indra/newview/llwindlightremotectrl.cpp | |
parent | Removing camera-behind-agent-head-blocking-view-when-looking-at-last-chatter ... (diff) | |
download | meta-impy-bd35913526ff34dcfaa1a8bfab88138db0abb413.zip meta-impy-bd35913526ff34dcfaa1a8bfab88138db0abb413.tar.gz meta-impy-bd35913526ff34dcfaa1a8bfab88138db0abb413.tar.bz2 meta-impy-bd35913526ff34dcfaa1a8bfab88138db0abb413.tar.xz |
Fixed crash caused by creating new windlight presets with spaces in the name or deleting existing presets
Diffstat (limited to 'linden/indra/newview/llwindlightremotectrl.cpp')
-rw-r--r-- | linden/indra/newview/llwindlightremotectrl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp index 20de2f5..f9fb7ba 100644 --- a/linden/indra/newview/llwindlightremotectrl.cpp +++ b/linden/indra/newview/llwindlightremotectrl.cpp | |||
@@ -137,6 +137,8 @@ BOOL LLWindlightRemoteCtrl::postBuild() | |||
137 | 137 | ||
138 | void LLWindlightRemoteCtrl::refreshPresets() | 138 | void LLWindlightRemoteCtrl::refreshPresets() |
139 | { | 139 | { |
140 | // Just in case, let's not ever crash here | ||
141 | mPresetsCombo = getChild<LLComboBox>("Presets"); | ||
140 | if (mPresetsCombo) | 142 | if (mPresetsCombo) |
141 | { | 143 | { |
142 | // snag current preset | 144 | // snag current preset |