diff options
author | Brad King <brad.king@kitware.com> | 2019-08-20 12:56:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 12:56:21 (GMT) |
commit | feec57e8001a2116434f48bb9628c100cd3b2c1a (patch) | |
tree | 8a71d658673f6d6b080dec963a21968451d62e31 | |
parent | ff7f8b81d14f306374346e56af38f19e03ff93ee (diff) | |
parent | 154c5f794980605fd9456d794650c6e49635a177 (diff) | |
download | CMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.zip CMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.tar.gz CMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.tar.bz2 |
Merge branch 'ccmake-crash-on-empty-strings-property' into release-3.15
Merge-request: !3678
-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: |