From f0a41ce16072b9df79c4a2fa13ccdee055f7e6e4 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 9 Oct 2008 12:49:49 -0400 Subject: [PATCH] BUG: fix for 4026, display a message if ccmake has errors --- Source/CursesDialog/cmCursesMainForm.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 89462382c..e49116470 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -683,14 +683,15 @@ int cmCursesMainForm::Configure(int noconfigure) { this->OkToGenerate = false; } - // reset error condition - cmSystemTools::ResetErrorOccuredFlag(); int xx,yy; getmaxyx(stdscr, yy, xx); cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm( this->Errors, - cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." : - "CMake produced the following output."); + cmSystemTools::GetErrorOccuredFlag() + ? "Errors occurred during the last pass." : + "CMake produced the following output."); + // reset error condition + cmSystemTools::ResetErrorOccuredFlag(); CurrentForm = msgs; msgs->Render(1,1,xx,yy); msgs->HandleInput();