diff options
author | M Furkan USLU <mfurkanuslu@yandex.com> | 2019-08-09 22:48:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 12:48:09 (GMT) |
commit | 154c5f794980605fd9456d794650c6e49635a177 (patch) | |
tree | 8292e283c7bea0bc8ea19c1f0a648b3f3dffef2f /Source/CursesDialog/cmCursesOptionsWidget.cxx | |
parent | 40bbe50e23c06232ccf1c49589dde5dd84e1ac31 (diff) | |
download | CMake-154c5f794980605fd9456d794650c6e49635a177.zip CMake-154c5f794980605fd9456d794650c6e49635a177.tar.gz CMake-154c5f794980605fd9456d794650c6e49635a177.tar.bz2 |
ccmake: handle cache entries with empty STRINGS property
Fixes: #19585
Diffstat (limited to 'Source/CursesDialog/cmCursesOptionsWidget.cxx')
-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 a8c4933..eb773ad 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: |