diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-01 12:14:45 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-02 11:37:56 (GMT) |
commit | ed2fe558b03e006d708c0fb210f218d9a80ffc01 (patch) | |
tree | fa065408e1c2d5f55ccd05eb96b27cebcdbaf2f0 /Source/QtDialog/CMakeSetupDialog.cxx | |
parent | 44f1744bed50e6ef47b179810a7533538b31722b (diff) | |
download | CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.zip CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.gz CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.bz2 |
CursesDialog: resolve clang-tidy warnings
Fixes:
- unnecessary bool expression (cmCursesMainForm)
- removes a duplicate if/else branch (RegexExplorer)
- collapses redundant if/else branch logic (CMakeSetupDialog and
cmCursesStringWidget)
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 5916a96..6dbfe11 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -1060,14 +1060,7 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) this->GenerateAction->setEnabled(false); this->OpenProjectButton->setEnabled(false); this->GenerateButton->setText(tr("&Stop")); - } else if (s == ReadyConfigure) { - this->setEnabledState(true); - this->GenerateButton->setEnabled(true); - this->GenerateAction->setEnabled(true); - this->ConfigureButton->setEnabled(true); - this->ConfigureButton->setText(tr("&Configure")); - this->GenerateButton->setText(tr("&Generate")); - } else if (s == ReadyGenerate) { + } else if (s == ReadyConfigure || s == ReadyGenerate) { this->setEnabledState(true); this->GenerateButton->setEnabled(true); this->GenerateAction->setEnabled(true); |