SH-2635 FIX - always send crash report if previous session froze
parent
1e70d53b19
commit
5c868a90f2
|
|
@ -2825,48 +2825,15 @@ void LLAppViewer::initUpdater()
|
|||
|
||||
void LLAppViewer::checkForCrash(void)
|
||||
{
|
||||
|
||||
#if LL_SEND_CRASH_REPORTS
|
||||
if (gLastExecEvent == LAST_EXEC_FROZE)
|
||||
{
|
||||
llinfos << "Last execution froze, requesting to send crash report." << llendl;
|
||||
//
|
||||
// Pop up a freeze or crash warning dialog
|
||||
//
|
||||
S32 choice;
|
||||
const S32 cb = gCrashSettings.getS32("CrashSubmitBehavior");
|
||||
if(cb == CRASH_BEHAVIOR_ASK)
|
||||
{
|
||||
std::ostringstream msg;
|
||||
msg << LLTrans::getString("MBFrozenCrashed");
|
||||
std::string alert = LLTrans::getString("APP_NAME") + " " + LLTrans::getString("MBAlert");
|
||||
choice = OSMessageBox(msg.str(),
|
||||
alert,
|
||||
OSMB_YESNO);
|
||||
}
|
||||
else if(cb == CRASH_BEHAVIOR_NEVER_SEND)
|
||||
{
|
||||
choice = OSBTN_NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
choice = OSBTN_YES;
|
||||
}
|
||||
|
||||
if (OSBTN_YES == choice)
|
||||
{
|
||||
llinfos << "Sending crash report." << llendl;
|
||||
llinfos << "Last execution froze, sending a crash report." << llendl;
|
||||
|
||||
bool report_freeze = true;
|
||||
handleCrashReporting(report_freeze);
|
||||
}
|
||||
else
|
||||
{
|
||||
llinfos << "Not sending crash report." << llendl;
|
||||
}
|
||||
bool report_freeze = true;
|
||||
handleCrashReporting(report_freeze);
|
||||
}
|
||||
#endif // LL_SEND_CRASH_REPORTS
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue