changed error handling behavior

This commit is contained in:
Glenn Maynard
2006-02-14 05:01:58 +00:00
parent 62ad8d69f7
commit 0efb355169
@@ -749,10 +749,14 @@ bool CrashDialog::HandleMessage( UINT msg, WPARAM wParam, LPARAM lParam )
SAFE_DELETE( m_pPost );
/* On error, don't show the "report" button again. If the submission was actually
* successful, then it'd be too easy to accidentally spam the server by holding
* down the button. */
if( !sError.empty() )
{
SetDialogInitial();
SetWindowText( GetDlgItem(hDlg, IDC_MAIN_TEXT), ERROR_SENDING_REPORT.GetValue() );
SetWindowText( GetDlgItem(hDlg, IDC_BUTTON_CLOSE), CLOSE.GetValue() );
ShowWindow( GetDlgItem(hDlg, IDC_PROGRESS), false );
break;
}