aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcrashlogger
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:29 -0500
committerJacek Antonelli2008-08-15 23:45:29 -0500
commit7bdb4845afdd157f95281293803567090e3f992a (patch)
treefbcada1c227d7407f9f37ccba360bfe6326d9c5e /linden/indra/llcrashlogger
parentSecond Life viewer sources 1.19.0.0 (diff)
downloadmeta-impy-7bdb4845afdd157f95281293803567090e3f992a.zip
meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.gz
meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.bz2
meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.xz
Second Life viewer sources 1.19.0.2
Diffstat (limited to 'linden/indra/llcrashlogger')
-rwxr-xr-xlinden/indra/llcrashlogger/llcrashlogger.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/linden/indra/llcrashlogger/llcrashlogger.cpp b/linden/indra/llcrashlogger/llcrashlogger.cpp
index 3823abf..8b1fffa 100755
--- a/linden/indra/llcrashlogger/llcrashlogger.cpp
+++ b/linden/indra/llcrashlogger/llcrashlogger.cpp
@@ -204,8 +204,7 @@ S32 LLCrashLogger::loadCrashBehaviorSetting()
204 204
205bool LLCrashLogger::saveCrashBehaviorSetting(S32 crash_behavior) 205bool LLCrashLogger::saveCrashBehaviorSetting(S32 crash_behavior)
206{ 206{
207 if (crash_behavior < CRASH_BEHAVIOR_ASK) return false; 207 if (crash_behavior != CRASH_BEHAVIOR_ASK && crash_behavior != CRASH_BEHAVIOR_ALWAYS_SEND) return false;
208 if (crash_behavior > CRASH_BEHAVIOR_NEVER_SEND) return false;
209 208
210 mCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior); 209 mCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior);
211 std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, CRASH_SETTINGS_FILE); 210 std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, CRASH_SETTINGS_FILE);
@@ -288,18 +287,7 @@ bool LLCrashLogger::init()
288 llinfos << "Show the user dialog" << llendl; 287 llinfos << "Show the user dialog" << llendl;
289 mCrashBehavior = CRASH_BEHAVIOR_ASK; 288 mCrashBehavior = CRASH_BEHAVIOR_ASK;
290 } 289 }
291 290
292 LLSD server = getOption("user");
293 if(server.isDefined())
294 {
295 mGridName = server.asString();
296 llinfos << "Got userserver " << mGridName << llendl;
297 }
298 else
299 {
300 mGridName = "agni";
301 }
302
303 LLSD name = getOption("name"); 291 LLSD name = getOption("name");
304 if(name.isDefined()) 292 if(name.isDefined())
305 { 293 {