diff options
author | Victor Heng <heng.victor@gmail.com> | 2016-05-28 16:56:28 -0700 |
---|---|---|
committer | Victor Heng <Victor.Heng@us.thalesgroup.com> | 2016-06-01 04:55:45 +0000 |
commit | 48423414f6911f76ec31f48e600149a8893aeab7 (patch) | |
tree | 74e4c7a636508379ddf94855ee2cd817bf43cbce | |
parent | 4117ba7313506db14683ef14e73128bc2f5c80f1 (diff) |
JsonWizard: Check widget visibility when determining if it's mandatory
The wizard is unable to advance when a mandatory field is hidden. Assume
a hidden widget is not mandatory.
Change-Id: I19bdc1a661d91b75151d3aec34ad9d584002a556
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r-- | src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index ca825246b3..33ce78cf38 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -955,7 +955,7 @@ bool JsonFieldPage::isComplete() const showError(message); hasErrorMessage = true; } - if (f->isMandatory()) + if (f->isMandatory() && !f->widget()->isHidden()) result = false; } } |