BUG: Prevent deleting not existing variables and therefore prevent crash. Fixes: Bug #750 - CCMake crashes when deleting all variables

This commit is contained in:
Andy Cedilnik 2004-04-15 15:46:58 -04:00
parent 23a154941b
commit 0986b42761
1 changed files with 1 additions and 1 deletions

View File

@ -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);