summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-15 19:46:58 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-15 19:46:58 (GMT)
commit0986b42761f501d58b17e3fabe238da636ca2d11 (patch)
tree10a7412ef9220e77496dbdb6f3df56d4e866e862 /Source/CursesDialog
parent23a154941bd44ed1fec701e7c8367e32ab19f759 (diff)
downloadCMake-0986b42761f501d58b17e3fabe238da636ca2d11.zip
CMake-0986b42761f501d58b17e3fabe238da636ca2d11.tar.gz
CMake-0986b42761f501d58b17e3fabe238da636ca2d11.tar.bz2
BUG: Prevent deleting not existing variables and therefore prevent crash. Fixes: Bug #750 - CCMake crashes when deleting all variables
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx2
1 files changed, 1 insertions, 1 deletions
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);