diff options
author | Brad King <brad.king@kitware.com> | 2019-08-20 12:57:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-20 12:57:37 (GMT) |
commit | 4aff5a0ffa71854f078b39451f097ddf7e7a878a (patch) | |
tree | 761119d3805533043c206b1878ad07f780f9bbcf /Source/CursesDialog | |
parent | 6cf8883a8577514dac3774b7cc9251fe90fa85d7 (diff) | |
parent | 154c5f794980605fd9456d794650c6e49635a177 (diff) | |
download | CMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.zip CMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.tar.gz CMake-4aff5a0ffa71854f078b39451f097ddf7e7a878a.tar.bz2 |
Merge topic 'ccmake-crash-on-empty-strings-property'
154c5f7949 ccmake: handle cache entries with empty STRINGS property
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3678
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 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: |