From e97583629244fd01ccf15b2a587ffcb1d31879f9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 16 Mar 2006 11:28:13 -0500 Subject: [PATCH] ENH: not all messages are errors --- Source/CursesDialog/cmCursesMainForm.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 395c3140e..f8f50ee5e 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -738,8 +738,13 @@ int cmCursesMainForm::Generate() cmSystemTools::ResetErrorOccuredFlag(); int xx,yy; getmaxyx(stdscr, yy, xx); + const char* title = "Messages during last pass."; + if(cmSystemTools::GetErrorOccuredFlag()) + { + title = "Errors occurred during the last pass."; + } cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(this->Errors, - "Errors occurred during the last pass."); + title); CurrentForm = msgs; msgs->Render(1,1,xx,yy); msgs->HandleInput();