ENH: not all messages are errors
This commit is contained in:
parent
a1f22bde81
commit
e975836292
|
@ -738,8 +738,13 @@ int cmCursesMainForm::Generate()
|
||||||
cmSystemTools::ResetErrorOccuredFlag();
|
cmSystemTools::ResetErrorOccuredFlag();
|
||||||
int xx,yy;
|
int xx,yy;
|
||||||
getmaxyx(stdscr, yy, xx);
|
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,
|
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(this->Errors,
|
||||||
"Errors occurred during the last pass.");
|
title);
|
||||||
CurrentForm = msgs;
|
CurrentForm = msgs;
|
||||||
msgs->Render(1,1,xx,yy);
|
msgs->Render(1,1,xx,yy);
|
||||||
msgs->HandleInput();
|
msgs->HandleInput();
|
||||||
|
|
Loading…
Reference in New Issue