changed error handling behavior
This commit is contained in:
@@ -749,10 +749,14 @@ bool CrashDialog::HandleMessage( UINT msg, WPARAM wParam, LPARAM lParam )
|
|||||||
|
|
||||||
SAFE_DELETE( m_pPost );
|
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() )
|
if( !sError.empty() )
|
||||||
{
|
{
|
||||||
SetDialogInitial();
|
|
||||||
SetWindowText( GetDlgItem(hDlg, IDC_MAIN_TEXT), ERROR_SENDING_REPORT.GetValue() );
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user