diff options
author | McCabe Maxsted | 2010-06-17 00:03:40 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:42 -0500 |
commit | 73c16d0461abbe24f5c67198fe2570669d88b027 (patch) | |
tree | d9e50e0645989c68f2c0698662966a8c65ddecc5 /linden/indra/newview/llwindlightremotectrl.cpp | |
parent | Made resident chooser use 'Close' instead of 'Cancel' since you can't actuall... (diff) | |
download | meta-impy-73c16d0461abbe24f5c67198fe2570669d88b027.zip meta-impy-73c16d0461abbe24f5c67198fe2570669d88b027.tar.gz meta-impy-73c16d0461abbe24f5c67198fe2570669d88b027.tar.bz2 meta-impy-73c16d0461abbe24f5c67198fe2570669d88b027.tar.xz |
Fixed #318 Crash in LLWindlightRemoteCtrl::refreshPresets()
Diffstat (limited to 'linden/indra/newview/llwindlightremotectrl.cpp')
-rw-r--r-- | linden/indra/newview/llwindlightremotectrl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp index f9fb7ba..0beb3e5 100644 --- a/linden/indra/newview/llwindlightremotectrl.cpp +++ b/linden/indra/newview/llwindlightremotectrl.cpp | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "lluictrlfactory.h" | 41 | #include "lluictrlfactory.h" |
42 | #include "llwlparammanager.h" | 42 | #include "llwlparammanager.h" |
43 | #include "llviewercontrol.h" | 43 | #include "llviewercontrol.h" |
44 | #include "llviewerwindow.h" | ||
44 | 45 | ||
45 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | 46 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 |
46 | #include "rlvhandler.h" | 47 | #include "rlvhandler.h" |
@@ -137,8 +138,12 @@ BOOL LLWindlightRemoteCtrl::postBuild() | |||
137 | 138 | ||
138 | void LLWindlightRemoteCtrl::refreshPresets() | 139 | void LLWindlightRemoteCtrl::refreshPresets() |
139 | { | 140 | { |
140 | // Just in case, let's not ever crash here | 141 | // If we're teleporting or just logging in, no UI to refresh |
141 | mPresetsCombo = getChild<LLComboBox>("Presets"); | 142 | if (gViewerWindow->getShowProgress()) |
143 | { | ||
144 | return; | ||
145 | } | ||
146 | |||
142 | if (mPresetsCombo) | 147 | if (mPresetsCombo) |
143 | { | 148 | { |
144 | // snag current preset | 149 | // snag current preset |