diff options
author | M Furkan USLU <mfurkanuslu@yandex.com> | 2019-08-10 01:48:34 +0300 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 08:48:09 -0400 |
commit | 154c5f794980605fd9456d794650c6e49635a177 (patch) | |
tree | 8292e283c7bea0bc8ea19c1f0a648b3f3dffef2f /Source/CursesDialog | |
parent | 40bbe50e23c06232ccf1c49589dde5dd84e1ac31 (diff) | |
download | cmake-154c5f794980605fd9456d794650c6e49635a177.tar.gz |
ccmake: handle cache entries with empty STRINGS property
Fixes: #19585
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesOptionsWidget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesOptionsWidget.cxx b/Source/CursesDialog/cmCursesOptionsWidget.cxx index a8c4933806..eb773ad0fb 100644 --- a/Source/CursesDialog/cmCursesOptionsWidget.cxx +++ b/Source/CursesDialog/cmCursesOptionsWidget.cxx @@ -23,6 +23,9 @@ cmCursesOptionsWidget::cmCursesOptionsWidget(int width, int height, int left, bool cmCursesOptionsWidget::HandleInput(int& key, cmCursesMainForm* /*fm*/, WINDOW* w) { + if (this->Options.empty()) { + return false; + } switch (key) { case 10: // 10 == enter case KEY_ENTER: |