BUG: Prevent deleting not existing variables and therefore prevent crash. Fixes: Bug #750 - CCMake crashes when deleting all variables
This commit is contained in:
parent
23a154941b
commit
0986b42761
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue