diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index 17fca4e..ee676b0 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -55,9 +55,7 @@ | |||
55 | #include "llui.h" | 55 | #include "llui.h" |
56 | #include "llurlsimstring.h" | 56 | #include "llurlsimstring.h" |
57 | #include "llviewercontrol.h" | 57 | #include "llviewercontrol.h" |
58 | #include "llappviewer.h" | ||
59 | #include "llurlsimstring.h" | 58 | #include "llurlsimstring.h" |
60 | #include "llappviewer.h" | ||
61 | 59 | ||
62 | #include "llcheckboxctrl.h" | 60 | #include "llcheckboxctrl.h" |
63 | #include "llradiogroup.h" | 61 | #include "llradiogroup.h" |
@@ -85,7 +83,7 @@ static void set_render_name_fade_out(LLUICtrl* ctrl, void* data) | |||
85 | 83 | ||
86 | void set_crash_behavior(LLUICtrl* ctrl, void* data) | 84 | void set_crash_behavior(LLUICtrl* ctrl, void* data) |
87 | { | 85 | { |
88 | LLAppViewer::instance()->setCrashBehavior(((LLComboBox*) ctrl)->getCurrentIndex()); | 86 | gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, ((LLComboBox*) ctrl)->getCurrentIndex()); |
89 | } | 87 | } |
90 | 88 | ||
91 | void set_language(LLUICtrl* ctrl, void* data) | 89 | void set_language(LLUICtrl* ctrl, void* data) |
@@ -145,7 +143,7 @@ BOOL LLPanelGeneral::postBuild() | |||
145 | combo = getChild<LLComboBox>( "crash_behavior_combobox"); | 143 | combo = getChild<LLComboBox>( "crash_behavior_combobox"); |
146 | if (combo) | 144 | if (combo) |
147 | { | 145 | { |
148 | combo->setCurrentByIndex( LLAppViewer::instance()->getCrashBehavior() ); | 146 | combo->setCurrentByIndex( gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING) ); |
149 | combo->setCommitCallback( &set_crash_behavior ); | 147 | combo->setCommitCallback( &set_crash_behavior ); |
150 | } | 148 | } |
151 | 149 | ||
@@ -181,11 +179,11 @@ void LLPanelGeneral::refresh() | |||
181 | mLoginLocation = combo->getValue().asString(); | 179 | mLoginLocation = combo->getValue().asString(); |
182 | } | 180 | } |
183 | 181 | ||
184 | mCrashBehavior = LLAppViewer::instance()->getCrashBehavior(); | 182 | mOldCrashBehavior = gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING); |
185 | combo = getChild<LLComboBox>( "crash_behavior_combobox"); | 183 | combo = getChild<LLComboBox>( "crash_behavior_combobox"); |
186 | if (combo) | 184 | if (combo) |
187 | { | 185 | { |
188 | combo->setCurrentByIndex( LLAppViewer::instance()->getCrashBehavior() ); | 186 | combo->setCurrentByIndex( mOldCrashBehavior ); |
189 | } | 187 | } |
190 | 188 | ||
191 | mRenderName = gSavedSettings.getS32("RenderName"); | 189 | mRenderName = gSavedSettings.getS32("RenderName"); |
@@ -235,7 +233,7 @@ void LLPanelGeneral::cancel() | |||
235 | 233 | ||
236 | LLURLSimString::setString(mLoginLocation); | 234 | LLURLSimString::setString(mLoginLocation); |
237 | 235 | ||
238 | LLAppViewer::instance()->setCrashBehavior(mCrashBehavior); | 236 | gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, mOldCrashBehavior); |
239 | } | 237 | } |
240 | 238 | ||
241 | void LLPanelGeneral::clickShowStartLocation(LLUICtrl*, void* user_data) | 239 | void LLPanelGeneral::clickShowStartLocation(LLUICtrl*, void* user_data) |