From 17d4d8bc4441b18ede8ed612fbd7b29ebba0e145 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 13 Mar 2006 08:48:32 +0000 Subject: [PATCH] cleaner/more consistent report id --- stepmania/src/archutils/Win32/CrashHandlerChild.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp index 9c51014b3b..f15390751c 100644 --- a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp +++ b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp @@ -811,14 +811,19 @@ BOOL CrashDialog::HandleMessage( UINT msg, WPARAM wParam, LPARAM lParam ) else if( xml.GetAttrValue("ReportId", iID) ) { SetWindowText( GetDlgItem(hDlg, IDC_MAIN_TEXT), UPDATE_IS_NOT_AVAILABLE.GetValue() ); - SetWindowText( GetDlgItem(hDlg, IDC_RESULT_ID), ssprintf("#%i", iID) ); - ShowWindow( GetDlgItem(hDlg, IDC_RESULT_ID), true ); } else { SetWindowText( GetDlgItem(hDlg, IDC_MAIN_TEXT), ERROR_SENDING_REPORT.GetValue() ); } + if( xml.GetAttrValue("ReportId", iID) ) + { + char sBuf[1024]; + GetWindowText( hDlg, sBuf, 1024 ); + SetWindowText( hDlg, ssprintf("%s (#%i)", sBuf, iID) ); + } + ShowWindow( GetDlgItem(hDlg, IDC_PROGRESS), false ); SetWindowText( GetDlgItem(hDlg, IDC_BUTTON_CLOSE), CLOSE.GetValue() ); }