aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/linux_crash_logger/llcrashloggerlinux.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp b/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp
index c4294d6..4ccbe9a 100644
--- a/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp
+++ b/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2003&license=viewergpl$ 5 * $LicenseInfo:firstyear=2003&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2003-2008, Linden Research, Inc. 7 * Copyright (c) 2003-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -124,11 +124,20 @@ void LLCrashLoggerLinux::gatherPlatformSpecificFiles()
124 124
125bool LLCrashLoggerLinux::mainLoop() 125bool LLCrashLoggerLinux::mainLoop()
126{ 126{
127 if(!do_ask_dialog()) 127 bool send_logs = true;
128 if(CRASH_BEHAVIOR_ASK == getCrashBehavior())
128 { 129 {
129 return true; 130 send_logs = do_ask_dialog();
131 }
132 else if(CRASH_BEHAVIOR_NEVER_SEND == getCrashBehavior())
133 {
134 send_logs = false;
135 }
136
137 if(send_logs)
138 {
139 sendCrashLogs();
130 } 140 }
131 sendCrashLogs();
132 return true; 141 return true;
133} 142}
134 143