summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-16 16:28:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-16 16:28:13 (GMT)
commite97583629244fd01ccf15b2a587ffcb1d31879f9 (patch)
tree28c73d4ebccea8e45ad07ad3db130122f0db114f /Source/CursesDialog
parenta1f22bde81d1805b7e9af172f4d6ed093b217e04 (diff)
downloadCMake-e97583629244fd01ccf15b2a587ffcb1d31879f9.zip
CMake-e97583629244fd01ccf15b2a587ffcb1d31879f9.tar.gz
CMake-e97583629244fd01ccf15b2a587ffcb1d31879f9.tar.bz2
ENH: not all messages are errors
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 395c314..f8f50ee 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();