From 0986b42761f501d58b17e3fabe238da636ca2d11 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 15 Apr 2004 15:46:58 -0400 Subject: BUG: Prevent deleting not existing variables and therefore prevent crash. Fixes: Bug #750 - CCMake crashes when deleting all variables --- Source/CursesDialog/cmCursesMainForm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 2a8b299..ae89e07 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -1072,7 +1072,7 @@ void cmCursesMainForm::HandleInput() } } // delete cache entry - else if ( key == 'd' ) + else if ( key == 'd' && m_NumberOfVisibleEntries ) { m_OkToGenerate = false; FIELD* cur = current_field(m_Form); -- cgit v0.12